diff options
| author | Andrew Leech <andrew.leech@planetinnovation.com.au> | 2020-08-14 11:49:41 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2020-08-26 15:00:11 +1000 |
| commit | a80a146858b3c9a7fbae4030a524666ab19f7a47 (patch) | |
| tree | 0de2574a6e87c825fe60212dfc5db374cdd8154f /extmod/modbluetooth.h | |
| parent | 0bc2c1c1057d7f5c1e4987139062386a8f9fe5f2 (diff) | |
extmod/bluetooth: Support active scanning in BLE.gap_scan().
This adds an additional optional parameter to gap_scan() to select active
scanning, where scan responses are returned as well as normal scan results.
This parameter is False by default which retains the existing behaviour.
Diffstat (limited to 'extmod/modbluetooth.h')
| -rw-r--r-- | extmod/modbluetooth.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extmod/modbluetooth.h b/extmod/modbluetooth.h index cdb86e5e6..2c0768312 100644 --- a/extmod/modbluetooth.h +++ b/extmod/modbluetooth.h @@ -215,7 +215,7 @@ int mp_bluetooth_gap_disconnect(uint16_t conn_handle); #if MICROPY_PY_BLUETOOTH_ENABLE_CENTRAL_MODE // Start a discovery (scan). Set duration to zero to run continuously. -int mp_bluetooth_gap_scan_start(int32_t duration_ms, int32_t interval_us, int32_t window_us); +int mp_bluetooth_gap_scan_start(int32_t duration_ms, int32_t interval_us, int32_t window_us, bool active_scan); // Stop discovery (if currently active). int mp_bluetooth_gap_scan_stop(void); |
