tzapu / WiFiManager

ESP8266 WiFi Connection manager with web captive portal
http://tzapu.com/esp8266-wifi-connection-manager-library-arduino-ide/
MIT License
6.45k stars 1.94k forks source link

Other processes stops until the device is paired with the Wifi #1620

Closed patelabhi23 closed 10 months ago

patelabhi23 commented 1 year ago

My microcontroller has Wifi Manager integrated in it & there is a sensor also connected to it. So as soon as I turn on my device & until the device is configured with Wifi networks available. The microcontroller isn't being able to record the data from the sensor. Only after device is configured with wifi then only sensor readings are being done.

Instead of above what it should be:

The microcontroller should be able to record the data of sensors & along with that parallely wifi manager should be running to.

@tablatronix is there any solution for this?

tablatronix commented 1 year ago

Who code is it?

https://github.com/tzapu/WiFiManager/wiki/Methods#setconfigportaltimeoutunsigned-long-seconds-green_book

xr1140 commented 10 months ago

I think you should run WiFiManager in non-blocking mode. using wm.setConfigPortalBlocking(false);