diff options
| author | Jim Mussared | 2020-11-25 19:26:56 +1100 |
|---|---|---|
| committer | Damien George | 2020-12-02 14:39:41 +1100 |
| commit | ac89267fef8b2396cf46c6ba19ccbe3d10acff9a (patch) | |
| tree | 31c78500c09f9d471e51948d3b3194b08e050115 /extmod/nimble | |
| 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/nimble')
| -rw-r--r-- | extmod/nimble/nimble.mk | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/extmod/nimble/nimble.mk b/extmod/nimble/nimble.mk index 00a244d6e..ba094f16f 100644 --- a/extmod/nimble/nimble.mk +++ b/extmod/nimble/nimble.mk @@ -24,6 +24,11 @@ ifeq ($(MICROPY_BLUETOOTH_NIMBLE_BINDINGS_ONLY),0) # UART is also polled by the RX IRQ. CFLAGS_MOD += -DMICROPY_PY_BLUETOOTH_USE_SYNC_EVENTS=1 +# Without the ringbuffer, and with the full implementation, we can also +# enable pairing and bonding. This requires both synchronous events and +# some customisation of the key store. +CFLAGS_MOD += -DMICROPY_PY_BLUETOOTH_ENABLE_PAIRING_BONDING=1 + NIMBLE_LIB_DIR = lib/mynewt-nimble LIB_SRC_C += $(addprefix $(NIMBLE_LIB_DIR)/, \ |
