diff options
author | Jim Mussared <jim.mussared@gmail.com> | 2020-11-25 19:26:56 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2020-12-02 14:39:41 +1100 |
commit | ac89267fef8b2396cf46c6ba19ccbe3d10acff9a (patch) | |
tree | 31c78500c09f9d471e51948d3b3194b08e050115 /extmod/modbluetooth.c | |
parent | 5e20f689ada17dcd750d516c957115fbb36c9435 (diff) |
extmod/modbluetooth: Add compile-config flag to enable pairing/bonding.
Enable it on STM32/Unix NimBLE only (pairing/bonding requires synchronous
events and full bindings).
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'extmod/modbluetooth.c')
-rw-r--r-- | extmod/modbluetooth.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/extmod/modbluetooth.c b/extmod/modbluetooth.c index ed983b794..b9b7c7124 100644 --- a/extmod/modbluetooth.c +++ b/extmod/modbluetooth.c @@ -47,6 +47,10 @@ #error l2cap channels require synchronous modbluetooth events #endif +#if MICROPY_PY_BLUETOOTH_ENABLE_PAIRING_BONDING && !MICROPY_PY_BLUETOOTH_USE_SYNC_EVENTS +#error pairing and bonding require synchronous modbluetooth events +#endif + #define MP_BLUETOOTH_CONNECT_DEFAULT_SCAN_DURATION_MS 2000 #define MICROPY_PY_BLUETOOTH_MAX_EVENT_DATA_TUPLE_LEN 5 |