ESPAsyncWiFiManager icon indicating copy to clipboard operation
ESPAsyncWiFiManager copied to clipboard

Offline actions.

Open HamzaHajeir opened this issue 5 years ago • 3 comments

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 ?

HamzaHajeir avatar Oct 11 '18 12:10 HamzaHajeir

Interesting -- feel free to make some changes and submit a patch.

alanswx avatar Oct 12 '18 02:10 alanswx

I hope i can now.

I will feedback it to you when i find the solution in future :) .

HamzaHajeir avatar Oct 13 '18 10:10 HamzaHajeir

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.

tve avatar Jun 27 '19 16:06 tve