Closed EtlamGit closed 9 months ago
In my opinion it would be the task of WiFiManager to ensure automatic reconnect and not of the client application. The pull request would change that accordingly.
When you think the client application should stay in charge of this task, we should at least mention that in the documentation. (and reject this pull request)
How is reconnection handled in case WIFI connection is lost?
My use case is a location with bad WIFI signal. Therefore the connection could be lost at any time and the device should try to reconnect automatically (without blocking other tasks running on that device). I implemented something like that on a NodeMCU in LUA and that works like expected. But with a project based on this framework I experience the device just to be gone forever.
From other WIFI managers I know, that it is necessary to set some flag to enable automatic reconnect after connection loss. But here I do not find any method to do so:
I also experienced that this setting is sometimes stored persistent in flash. So you might need to call this only once and afterwards every new program will automatically reconnect even when not calling these methods. This is the same as SSID and password, they are also stored. (But this might be only the case for LUA scripts.)