wokwi-features icon indicating copy to clipboard operation
wokwi-features copied to clipboard

Support ESP32 Bluetooth low energy (BLE)

Open uriyacovy opened this issue 3 years ago • 5 comments

Is your feature request related to a problem? Please describe. Many esp32 projects rely on BLE to communicate and configure the device. Wokwi support for BLE would be really useful.

Describe the solution you'd like Implementation of either circuitpython's BLERadio or micropython's BLE modules.

uriyacovy avatar Nov 08 '21 08:11 uriyacovy

It would be great to test code that emulates bluetooth HID devices such as keyboards, mouses, and gamepads.

DigiDwrf avatar Oct 24 '23 20:10 DigiDwrf

Ideal solution would be to pass the host PC BLE interface through to the simulated ESP32, so that the simulated ESP32 can create a real GATT server that can be accessed by nearby devices.

Right now, it seems that attempts to initialize the BLE controller (calls to esp_nimble_hci_and_controller_init()) cause the simulation to hang. In the interim it would be nice if the BLE initialization failed gracefully; right now we need extra code to figure out if it's running in Wokwi so that it doesn't try to init BLE and hang.

msn444 avatar Jan 15 '24 18:01 msn444

Right now, it seems that attempts to initialize the BLE controller (calls to esp_nimble_hci_and_controller_init()) cause the simulation to hang. In the interim it would be nice if the BLE initialization failed gracefully; right now we need extra code to figure out if it's running in Wokwi so that it doesn't try to init BLE and hang.

Thanks for the feedback! Do you have a minimal test case that reproduces this? Perhaps one of the esp-idf examples?

urish avatar Feb 04 '24 15:02 urish

any news on the subject?

jumpjack avatar Mar 14 '24 12:03 jumpjack

any news on the subject?

No news. Simulating BLE is a lot of work, and the main use case we're seeing is provisioning for WiFi credentials. If we see interesting commercial use cases, then it may help prioritizing this.

urish avatar Mar 14 '24 13:03 urish