mirror of
https://github.com/tbnobody/OpenDTU.git
synced 2026-01-06 04:44:50 +01:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user