Added extra WiFiManger settings

This commit is contained in:
debsahu 2018-06-19 19:40:21 -04:00
parent 4994d59f9b
commit c754983d3b

View file

@ -319,6 +319,10 @@ void setup() {
#endif
WiFi.setSleepMode(WIFI_NONE_SLEEP);
// Uncomment if you want to restart ESP8266 if it cannot connect to WiFi.
// Value in brackets is in seconds that WiFiManger waits until restart
//wifiManager.setConfigPortalTimeout(180);
// Uncomment if you want to set static IP
// Order is: IP, Gateway and Subnet
@ -331,8 +335,8 @@ void setup() {
if (!wifiManager.autoConnect(HOSTNAME)) {
DBG_OUTPUT_PORT.println("failed to connect and hit timeout");
//reset and try again, or maybe put it to deep sleep
ESP.reset();
delay(1000);
ESP.reset(); //Will be removed when upgrading to standalone offline McLightingUI version
delay(1000); //Will be removed when upgrading to standalone offline McLightingUI version
}
#if defined(ENABLE_MQTT) or defined(ENABLE_AMQTT)