From 6b0b1a4a84be41be259ce23c1f122f69c80f05ba Mon Sep 17 00:00:00 2001 From: ricardollreis Date: Thu, 6 Jan 2022 16:18:04 +0000 Subject: [PATCH] Enable Portal Timeout in not Blocking Portal Enable the use of setConfigPortalTimeout( ) & setConfigPortalBlocking(false) at same time, by calling process() --- WiFiManager.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/WiFiManager.cpp b/WiFiManager.cpp index f53e3899..21490674 100644 --- a/WiFiManager.cpp +++ b/WiFiManager.cpp @@ -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();