ESPAsyncWiFiManager
ESPAsyncWiFiManager copied to clipboard
Offline actions.
Hello
I've noticed that sometimes i need the plant to work even before i set an access point to connect to it, As a normal operation.
So, And because this library called "Async", I propose to make it fully meant .
I don't know if this concept is supported here, If so please guide me.
Note : I've heard of Esparto library, I've read some of it without implementation. Could it help ?
Interesting -- feel free to make some changes and submit a patch.
I hope i can now.
I will feedback it to you when i find the solution in future :) .
I've been thinking about this issue for a bit. My conclusion is that there are two use-cases:
In most cases, systems that need to operate even without wifi can tolerate being "hung" in the configuration portal for a few minutes at reset if the AP is not reachable. In those cases, just use setConnectTimeout
to set a reasonable timeout value. It's a bit of a compromise between how much time you have to use the portal and how much time the system may be hung.
If the above is not acceptable, then simply turn wifi on in setup
using WiFi.mode(WIFI_STA)
and then check for a connection in loop
. Use setupConfigPortalModeless
if you determine that no connection is happening for too long a time.