wokwi / wokwi-features

Wokwi Feature requests & Bug Reports
https://wokwi.com
72 stars 17 forks source link

Support ESP32 Bluetooth low energy (BLE) #225

Open uriyacovy opened 2 years ago

uriyacovy commented 2 years ago

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.

DigiDwrf commented 11 months ago

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

msn444 commented 9 months ago

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.

urish commented 8 months ago

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?

jumpjack commented 7 months ago

any news on the subject?

urish commented 7 months ago

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.