mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
fix Arduino 7 (using to<> and not as<>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user