Combining BLE Central and Peripheral with aioble fails. #15489
Unanswered
Jahor
asked this question in
RP2040 / Pico
Replies: 1 comment 1 reply
-
Never mind. It was due to the default limit on number of connections in BT stack. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm trying to implement a gateway of sorts with BLE on both sides.
I run peripheral device with Nordic UART service. It works fine.
After that connection is established to another device (as central this time). It finds the device, but when I try to connect I get:
If I move connection to peripheral before advertisement it connects to fine. But while pico still advertising and accepting connections, connecting actually gets stuck (tried with another Pico W and nrfConnect on iOS - both sit trying to connect for a long time).
Both functions work fine when separated.
bluetooth module mentions that it is possible to combine both roles. I haven't found anything about that in aioble documentation.
Micropython (from the offical website): MicroPython v1.23.0 on 2024-06-02; Raspberry Pi Pico W with RP2040
Aioble: 0.5.2
Here is a small example that shows the issue:
wind_task = await connect_wind()
can be uncommented in one of 2 places.Beta Was this translation helpful? Give feedback.
All reactions