Added extra WiFiManger settings
This commit is contained in:
parent
4994d59f9b
commit
c754983d3b
1 changed files with 6 additions and 2 deletions
|
@ -320,6 +320,10 @@ void setup() {
|
|||
|
||||
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
|
||||
//wifiManager.setSTAStaticIPConfig(IPAddress(192,168,0,128), IPAddress(192,168,0,1), IPAddress(255,255,255,0));
|
||||
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue