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>
This commit is contained in:
committed by
Damien George
parent
5e20f689ad
commit
ac89267fef
@@ -54,6 +54,12 @@
|
||||
#define MICROPY_PY_BLUETOOTH_ENABLE_L2CAP_CHANNELS (0)
|
||||
#endif
|
||||
|
||||
// A port can optionally enable support for pairing and bonding.
|
||||
// Requires MICROPY_PY_BLUETOOTH_USE_SYNC_EVENTS.
|
||||
#ifndef MICROPY_PY_BLUETOOTH_ENABLE_PAIRING_BONDING
|
||||
#define MICROPY_PY_BLUETOOTH_ENABLE_PAIRING_BONDING (0)
|
||||
#endif
|
||||
|
||||
// This is used to protect the ringbuffer.
|
||||
// A port may no-op this if MICROPY_PY_BLUETOOTH_USE_SYNC_EVENTS is enabled.
|
||||
#ifndef MICROPY_PY_BLUETOOTH_ENTER
|
||||
|
||||
Reference in New Issue
Block a user