Skip to content

Commit

Permalink
Enable Portal Timeout in not Blocking Portal (#1331)
Browse files Browse the repository at this point in the history
Enable the use of setConfigPortalTimeout( ) & setConfigPortalBlocking(false) at same time, by calling process()
  • Loading branch information
ricardollreis authored Jan 6, 2022
1 parent 8452df7 commit d0bdf7b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions WiFiManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit d0bdf7b

Please # to comment.