From my understanding the PICO-W port of Micropython does not support pairing/bonding. These #define options or whatever they are called
MICROPY_PY_BLUETOOTH_ENABLE_PAIRING_BONDING and MICROPY_PY_BLUETOOTH_USE_SYNC_EVENTS are not defined. However, the C-SDK for PICO-W does support pairing/bonding.
So what I am trying to do is build the port with these constants defined, and do what ever other updates are needed such that pairing/bonding are supported. However, this project is huge and complicated and I have only looked at it for about a week. I did find instructions on how to build it, but what I really need is to find where in the RP2 port such settings are defined. Does anyone know where the Bluetooth settings for the RP2 port to PICO-W are defined such that I can, as a first step, define the above? If defined, the btstack code will support the pairing algorithms and the aioble library methods calling the pair() methods should no longer fail as the bond, io, le-secure. and mitm flags will no longer be an unknown parameter.
I have little/no understanding of the internals of what you are investigating.
But in case it helps, I note the Raspberry Pi News Blog that announced BT support for the PicoW -
Ref: https://www.raspberrypi.com/news/new-fu ... or-pico-w/
one thing has been missing: Bluetooth support. Now that’s been fixed
That links directly to the Micropython github repo - https://github.com/micropython/micropyt ... ff332235b2Update: Bluetooth support merged upstream into the official MicroPython repo.
The rp2 port of micropython as used on a PicoW is the product of Micropython themselves, so you might get more directly knowledgeable advice from them?
https://github.com/micropython/micropython/issues or https://github.com/orgs/micropython/discussions
Note: emphatically not my place to tell you not to pursue this here, only to suggest there might be a better place...
Statistics: Posted by B.Goode — Tue Feb 06, 2024 12:31 pm