LE scanning.
More...
LE scanning.
Not implemented by the NimBLE backend: both calls succeed without scanning and no report is delivered.
}
bool pbl_bt_start_le_scan(bool active_scan, bool use_white_list_filter, bool filter_dups, uint16_t scan_interval_ms, uint16_t scan_window_ms)
Start scanning.
bool pbl_bt_stop_le_scan(void)
Stop scanning.
◆ pbl_bt_cb_le_scan_handle_report()
| void pbl_bt_cb_le_scan_handle_report |
( |
const GAPLERawAdReport * |
data, |
|
|
int |
length |
|
) |
| |
|
extern |
Called for each advertising report received while scanning.
- Parameters
-
| data | The report, followed by its advertising and scan response data. |
| length | Total length of data in bytes. |
◆ pbl_bt_start_le_scan()
| bool pbl_bt_start_le_scan |
( |
bool |
active_scan, |
|
|
bool |
use_white_list_filter, |
|
|
bool |
filter_dups, |
|
|
uint16_t |
scan_interval_ms, |
|
|
uint16_t |
scan_window_ms |
|
) |
| |
Start scanning.
- Parameters
-
| active_scan | true to send scan requests, false for a passive scan. |
| use_white_list_filter | true to only report devices in the filter accept list. |
| filter_dups | true to filter out duplicate reports. |
| scan_interval_ms | Scan interval in milliseconds. |
| scan_window_ms | Scan window in milliseconds, at most scan_interval_ms. |
- Returns
- true on success.
◆ pbl_bt_stop_le_scan()
| bool pbl_bt_stop_le_scan |
( |
void |
| ) |
|
Stop scanning.
- Returns
- true on success.