Chat freely about anything...

User avatar
By aruneshdutta
#83233 Hello all

I am using Wifimanager for wifi setup in my projects and as usual it presented the captive portal for wifi credentials and works fine.The issue I face is if for some reason there is a Wifi disconnection(powerfail) it usually enters after certain time into captiveportal/access point state where I need to restart the ESP8266 to make it connect to earlier saved WiFi information once the WiFi is back else it will simply remain in access point mode/captive portal state, I wanted a way if possible to continuously try after certain time for saved Wifi connection information
Last edited by aruneshdutta on Sun Jul 28, 2019 8:10 pm, edited 1 time in total.
User avatar
By aruneshdutta
#83251 Thanks for your message, my concern is actually I have device without human presence it connects fine when the WIFI is active which was saved earlier in captive portal of it, but I want the device to autoconnect after certain duration when the wifi is down (power etc) as now after sometime if saved wifi is not on/power fail etc it simply would be in access point mode
User avatar
By btidey
#83260 I didn't make myself clear. I meant when the timeout occurs the control is passed back to your sketch and you can then have code which automatically checks whether the local wifi has recovered. No manual intervention is required.

So, if wifi fails, then using a timeout, the module can automatically cycle between activating the portal for a period followed by checking if wifi has recovered. This continues until either the wifi has recovered or you choose to use the portal to change the wifi network.