How to set the config in aioble #13585
-
This should be easy. I want to set the bond flag to True. aioble.core has this method
However, when I call I have even tried
and I get the same error. The documentation for both aioble and the low level define 'bond' as one of the parameters or key words. Anyone know what I am doing wrong? I am trying to solve the problem where the library responds to a security request with the bond flag cleared which no health device accepts. I have come to the conclusion there is some bug in the low-level bluetooth implementation and perhaps its port to the PICO-W. The BLE.config method gives the same error which means the aioble library will also report that error. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The See micropython/extmod/modbluetooth.h Line 65 in ed15b3c micropython/extmod/modbluetooth.c Line 399 in ed15b3c |
Beta Was this translation helpful? Give feedback.
The
bond
config parameter is only enabled if micropython is compiled with theMICROPY_PY_BLUETOOTH_ENABLE_PAIRING_BONDING
compilation flag enabled, which it would appear is not enabled by default on your port. Unfortunately, I dont know if this can be enabled for the pico-w by building your own micropython image.See
micropython/extmod/modbluetooth.h
Line 65 in ed15b3c
micropython/extmod/modbluetooth.c
Line 399 in ed15b3c