aioble examples for multiple peripherals #12674
Unanswered
simonwgill
asked this question in
Using MicroPython
Replies: 1 comment 2 replies
-
You have to at least configure the bluetooth stack you are using to support more than one device. Then you have to allow the scanner to restart after connecting as the scanner is stopped during connection. I do this by connecting, doing some basic things that all devices need like service discovery, reading the DIS, CTS, and Battery service, and then creating tasks to handle the device-specific stuff. After the task is created I exit the connection method allowing the scanner to restart. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been having some weird issues trying to connect to multiple devices at once. I expect that it should work, but I'm not all that comfortable with the way I'm doing the connections.
It would be really helpful to have a version of the temp_client example that can connect and read from as many temperature sensors are nearby to show the idiomatic way to do device management. If there's any factors that would affect the number of simultaneous connections, it would be very helpful to have a pointer to those as well.
Thanks,
Simon
Beta Was this translation helpful? Give feedback.
All reactions