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( - +
- +