wokwi-features
wokwi-features copied to clipboard
Support ESP32 Bluetooth low energy (BLE)
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.
It would be great to test code that emulates bluetooth HID devices such as keyboards, mouses, and gamepads.
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.
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?
any news on the subject?
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.