docs: add backup and restore functions for JSON configurations during OTA updates

This commit is contained in:
2025-02-21 17:38:20 +01:00
parent 38b68aecfc
commit b0b3d41c84
3 changed files with 66 additions and 6 deletions

View File

@ -8,8 +8,11 @@
#define UPDATE_SIZE_UNKNOWN 0xFFFFFFFF
#endif
void stopAllTasks();
void handleOTAUpload(AsyncWebServerRequest *request, String filename, size_t index, uint8_t *data, size_t len, bool final);
void handleOTAUpload(AsyncWebServerRequest *request, const String& filename, size_t index, uint8_t *data, size_t len, bool final);
void checkForStagedUpdate();
void performStageTwo();
void stopAllTasks();
void backupJsonConfigs();
void restoreJsonConfigs();
#endif