improv-wifi / sdk-cpp

Apache License 2.0
58 stars 9 forks source link

Improv BLE example #19

Open clau-bucur opened 11 months ago

clau-bucur commented 11 months ago

Trying to use Improv with BLE adoption, but can't find any examples other than the ESPHome implementation (which is a bit too complex for my limited understanding).

Do you have some simple example of a BLE implementation?

zehnm commented 9 months ago

I would also highly appreciate a simple BLE example for ESP32 or Arduino to get started quickly. Something like this serial demo but for BLE would be perfect: https://jnthas.github.io/improv-wifi-demo/.

Improv Wi-Fi seems a like a perfect fit for a project I'm working on, but the entry barrier is a bit high (outside of ESPHome). Maybe it's super simple for BLE experts, but I haven't done any BLE stuff yet :-)

zehnm commented 9 months ago

I got my hands dirty and started learning BLE and developing an improv-wifi example for ESP32 with IDF 5.1 and NimBLE. Once the fundamentials are working I'll release it (Apache-2.0) so others don't have to go through the same pain.

Current state:

Still missing: whole WiFi sta handling logic, RPC result and state timeouts

zehnm commented 9 months ago

Work in progress example project for ESP32 with IDF 5.1.2 and NimBLE: https://github.com/zehnm/idf-improv-wifi-ble