diff --git a/ESPTimeCast_ESP32/ESPTimeCast_ESP32.ino b/ESPTimeCast_ESP32/ESPTimeCast_ESP32.ino index 197451c..49fcbfb 100644 --- a/ESPTimeCast_ESP32/ESPTimeCast_ESP32.ino +++ b/ESPTimeCast_ESP32/ESPTimeCast_ESP32.ino @@ -841,9 +841,13 @@ void setupWebServer() { Serial.println(F("[SAVE] Password unchanged.")); // do nothing, keep the one already in doc } - } - - else if (n == "openWeatherApiKey") { + } else if (n == "ssid") { + if (v != "********" && v.length() > 0) { + doc[n] = v; + } else { + Serial.println(F("[SAVE] SSID unchanged.")); + } + } else if (n == "openWeatherApiKey") { if (v != "********************************") { // ignore mask only doc[n] = v; // save new key (even if empty) Serial.print(F("[SAVE] API key updated: ")); @@ -1589,44 +1593,54 @@ void setupWebServer() { server.on("/upload", HTTP_GET, [](AsyncWebServerRequest *request) { String html = R"rawliteral( - + - +

Upload config.json

@@ -1643,26 +1657,35 @@ void setupWebServer() { "/upload", HTTP_POST, [](AsyncWebServerRequest *request) { String html = R"rawliteral( - + Upload Successful @@ -1715,25 +1739,36 @@ void setupWebServer() { } const char *FACTORY_RESET_HTML = R"rawliteral( - + Resetting Device +

Upload config.json

@@ -1638,26 +1652,35 @@ void setupWebServer() { "/upload", HTTP_POST, [](AsyncWebServerRequest *request) { String html = R"rawliteral( - + Upload Successful @@ -1710,25 +1734,35 @@ void setupWebServer() { } const char *FACTORY_RESET_HTML = R"rawliteral( - + Resetting Device