zephyr::raw

Function bt_br_discovery_start

source
pub unsafe extern "C" fn bt_br_discovery_start(
    param: *const bt_br_discovery_param,
    results: *mut bt_br_discovery_result,
    count: usize,
) -> i32
Expand description

@brief Start BR/EDR discovery

Start BR/EDR discovery (inquiry) and provide results through the specified callback. The discovery results will be notified through callbacks registered by @ref bt_br_discovery_cb_register. If more inquiry results were received during session than fits in provided result storage, only ones with highest RSSI will be reported.

@param param Discovery parameters. @param results Storage for discovery results. @param count Number of results in storage. Valid range: 1-255.

@return Zero on success or error code otherwise, positive in case of protocol error or negative (POSIX) in case of stack internal error