Inital version to support OTA

This commit is contained in:
2025-02-15 16:57:21 +01:00
parent 33fdae3fb2
commit e8b8e95c13
6 changed files with 40 additions and 35 deletions

View File

@@ -22,6 +22,11 @@ class OTA {
Version _currentVersion;
String _current_device_configuration;
Firmware createErrorResponse(const String& errorMsg);
void run_ota_update(String url, std::function<void()> callback_started, std::function<void()> callback_finished, std::function<void(int, int)> callback_progress, std::function<void(int)> callback_error);
void update_started();
void update_finished();
void update_progress(int cur, int total);
void update_error(int err);
};
#endif