Enable Portal Timeout in not Blocking Portal (#1331)

Enable the use of setConfigPortalTimeout( ) & setConfigPortalBlocking(false) at same time, by calling process()
This commit is contained in:
ricardollreis
2022-01-06 11:04:13 -06:00
committed by GitHub
parent 8452df79bb
commit d0bdf7bdaa
+4
View File
@@ -756,6 +756,10 @@ boolean WiFiManager::process(){
#if defined(WM_MDNS) && defined(ESP8266)
MDNS.update();
#endif
if(configPortalActive && !_configPortalIsBlocking){
if(configPortalHasTimeout()) shutdownConfigPortal();
}
if(webPortalActive || (configPortalActive && !_configPortalIsBlocking)){
uint8_t state = processConfigPortal();