ESPAsyncWiFiManager icon indicating copy to clipboard operation
ESPAsyncWiFiManager copied to clipboard

Implement non-blocking mode

Open CODeRUS opened this issue 5 years ago • 3 comments

WifiManager in development branch have setConfigPortalBlocking function. It is handy to have some code running in background or utilize same webserver instance for actual web serving purposes for wifi clients.

CODeRUS avatar Aug 20 '19 22:08 CODeRUS

I also would like know about this!

izaiasemjr avatar Jun 24 '20 07:06 izaiasemjr

yes, please!

skaman82 avatar Jan 29 '21 21:01 skaman82

I'm Very interested in an non-blocking version to enable the ESP to get on with other things. Current implementation blocks in setup():

// Auto connect and goes into a blocking loop awaiting configuration if (!wifiManager.autoConnect("Access Point")) { Serial.println("failed to connect and hit timeout"); //reset and try again, or maybe put it to deep sleep ESP.restart(); delay(1000); }

I understand tzapu/WiFiManager has a implemented a wm.setConfigPortalBlocking(false) method used in setup, needing a wm.process(); call in the loop(). see here https://github.com/tzapu/WiFiManager/blob/master/examples/NonBlocking/AutoConnectNonBlocking/AutoConnectNonBlocking.ino.

Does anyone know of a fork / fix / variant that has non-blocking for ESP32? Thanks!!

DavidCBarrett avatar Mar 23 '23 15:03 DavidCBarrett