BREAKING CHANGE: Removed deprecated config parsing method

After this commit its not possible to migrate from the old binary blob config to the new json based config!! If you still running a old version before 12. October please upgrade to a version before this commit.
See https://github.com/tbnobody/OpenDTU/discussions/285
This commit is contained in:
Thomas Basler
2022-11-14 22:24:16 +01:00
parent 5f55414c0a
commit daf847e7b3
3 changed files with 6 additions and 153 deletions

View File

@@ -37,7 +37,7 @@ void WebApiConfigClass::onConfigGet(AsyncWebServerRequest* request)
return;
}
request->send(LittleFS, CONFIG_FILENAME_JSON, String(), true);
request->send(LittleFS, CONFIG_FILENAME, String(), true);
}
void WebApiConfigClass::onConfigDelete(AsyncWebServerRequest* request)
@@ -96,7 +96,7 @@ void WebApiConfigClass::onConfigDelete(AsyncWebServerRequest* request)
response->setLength();
request->send(response);
LittleFS.remove(CONFIG_FILENAME_JSON);
LittleFS.remove(CONFIG_FILENAME);
ESP.restart();
}
@@ -127,7 +127,7 @@ void WebApiConfigClass::onConfigUpload(AsyncWebServerRequest* request, String fi
if (!index) {
// open the file on first call and store the file handle in the request object
request->_tempFile = LittleFS.open(CONFIG_FILENAME_JSON, "w");
request->_tempFile = LittleFS.open(CONFIG_FILENAME, "w");
}
if (len) {