martinberlin / cale-idf

CalEPD is an Epaper component driver for the ESP-IDF framework with GFX and font support, optional touch interface, compatible with ESP32 / S2 / S3 / C3
https://fasani.de
Apache License 2.0
270 stars 24 forks source link

Rainmaker WiFi provisioning: Add NVS counter of WiFi connect failures #50

Closed martinberlin closed 1 year ago

martinberlin commented 2 years ago

Is your feature request related to a problem? Please describe. When using Rainmaker, if the user changes the router configuration credentials, without clearing credentials first in ESP rainmaker app then it enters in a restart loop. Because it cannot connect but also can’t clear the WiFi configuration in order to entern Blietppth provisioning mode.

Describe the solution you'd like The solution would be to have a WiFi failed connect counter that is stored in Non Volatine Storage, that when reaches 100 failed connections, clears the WiFi configuration and restarts. The issue with this is, is that it might clear credentials in a moment where the user does not want, simply becau It’s normal that from time to time the connect to WiFi process fails.

martinberlin commented 2 years ago

On hold till we upgrade this to IDF v5.0 and revise how Rainmaker works on that version