improv-wifi / sdk-ble-js

JavaScript SDK to add Improv Wi-Fi over BLE to your website.
https://www.improv-wifi.com
Apache License 2.0
46 stars 8 forks source link

Trouble connecting to stored non-existent network #214

Open nottledim opened 7 months ago

nottledim commented 7 months ago

I know; you'd expect it to fail if the network was non-existent. I've configured it deliberately incorrectly:

wifi:
  ssid: jollyrotten
  password: xxxyxxxy

It (ble) does eventually prompt for a new network (using the example client html). However the esp doesn't reconnect. You get this curious sequence:

[D][esp32_improv.component:299]: Received Improv wifi settings ssid=RealNet, password=[redacted]
[W][wifi:640]: WiFi network can not be found anymore.
[I][wifi:303]: WiFi Connecting to ''...
[W][wifi_esp32:307]: esp_wifi_connect failed! 12298
[E][wifi:349]: wifi_sta_connect_ failed!
[I][wifi:303]: WiFi Connecting to 'RealNet'...
[W][wifi:640]: WiFi network can not be found anymore.
[I][wifi:303]: WiFi Connecting to ''...
[W][wifi_esp32:307]: esp_wifi_connect failed! 12298
[E][wifi:349]: wifi_sta_connect_ failed!

As an aside it's really quite difficult to change the network credentials once they've been stored.