add wifimanager config portal timeout

#350 in case of power outage so as to avoid to pop up the web page before the mqtt server restart
This commit is contained in:
Florian committed 2019-01-30 20:52:44 +01:00
1 parent 091b317660
commit efadb696b9
3 files changed
+8 -6

No files matched your search

+3 -1
View File
@@ -496,6 +496,8 @@ void setup_wifimanager(boolean reset_settings){
//WiFiManager
//Local intialization. Once its business is done, there is no need to keep it around
WiFiManager wifiManager;
//Set timeout before going to portal
wifiManager.setConfigPortalTimeout(WifiManager_ConfigPortalTimeOut)
//set config save notify callback
wifiManager.setSaveConfigCallback(saveConfigCallback);
@@ -695,7 +697,7 @@ void loop()
if(RFM69toMQTT())
trc(F("RFM69toMQTT OK"));
#endif
#if defined(ESP8266) || defined(ESP32)
#if defined(ESP8266) || defined(ESP32) || defined(__AVR_ATmega2560__) || defined(__AVR_ATmega1280__)
stateMeasures();
#endif
}