fix Arduino 7 (using to<> and not as<>

This commit is contained in:
Proddy
2024-01-05 22:39:35 +01:00
parent 26e4badc1b
commit 19eb755157
4 changed files with 25 additions and 21 deletions

View File

@@ -168,7 +168,7 @@ void WebAPIService::getSettings(AsyncWebServerRequest * request) {
root["type"] = "settings";
JsonObject node = root["System"].add<JsonObject>();
JsonObject node = root["System"].to<JsonObject>();
node["version"] = EMSESP_APP_VERSION;
System::extractSettings(NETWORK_SETTINGS_FILE, "Network", root);