First version able to OTA update
All checks were successful
Test compiling project / test (push) Successful in 2m17s

This commit is contained in:
2025-02-15 17:06:20 +01:00
parent f1f42f3014
commit 6186959d8f
3 changed files with 19 additions and 3 deletions

View File

@@ -15,6 +15,7 @@ class OTA {
Firmware getLatestVersionOnServer();
bool checkForUpdate();
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);
private:
bool _isHTTPS = false;
@@ -22,7 +23,6 @@ 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);