Update to version 2.1.4

Update to version 2.1.4
This commit is contained in:
BPoH_Voodoo
2018-09-02 13:14:42 +02:00
parent 1bbff1eb4a
commit 7a4f595c04
4 changed files with 33 additions and 23 deletions
+7 -3
View File
@@ -347,6 +347,10 @@ DBG_OUTPUT_PORT.println("Starting....");
#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
@@ -359,8 +363,8 @@ DBG_OUTPUT_PORT.println("Starting....");
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)
@@ -521,7 +525,7 @@ DBG_OUTPUT_PORT.println("Starting....");
//get heap status, analog input value and all GPIO statuses in one json call
server.on("/esp_status", HTTP_GET, []() {
DynamicJsonDocument jsonBuffer;
JsonObject& json = jsonBuffer.to<JsonObject>();
JsonObject json = jsonBuffer.to<JsonObject>();
json["HOSTNAME"] = HOSTNAME;
json["version"] = SKETCH_VERSION;