Is it possible to connect to a ESP32-C3 with multiple BLE clients? #400
-
I am using the BLE example where the ESP32-C3 is a peripheral. Whenever I connect to it with one device, other devices cannot connect to it anymore. Can I connect more by changing the code? What is the physical limit on the number of clients connected at a time? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Technically the drivers allow multiple connections The examples use a simple pure Rust BLE stack which doesn't support that. The stack is not part of esp-wifi - all that esp-wifi provides in terms of Bluetooth is a way to send and receive HCI packets. You could use another stack but currently there are not many options for a pure Rust, no-std BLE stack. I hope we will see more advanced BLE stacks created by the community. It should also be possible to port e.g. the Nimble BLE stack to work with esp-wifi but that is not something we plan to do |
Beta Was this translation helpful? Give feedback.
With Rust-std on ESP32 you will get all of esp-idf which includes the Nimble Bluetooth stack - so yes it should support it.
I personally have no experience with std on ESP32 however