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.h | |
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.h')
-rw-r--r-- | extmod/modbluetooth.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/extmod/modbluetooth.h b/extmod/modbluetooth.h index 9856d4a68..2cb2c709c 100644 --- a/extmod/modbluetooth.h +++ b/extmod/modbluetooth.h @@ -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 |