Skip to content

OTA: Add firmware update, file remove callbacks#57

Open
VitaliyAndreevich wants to merge 2 commits intoGyverLibs:mainfrom
VitaliyAndreevich:feature/add_fwupdate_cb
Open

OTA: Add firmware update, file remove callbacks#57
VitaliyAndreevich wants to merge 2 commits intoGyverLibs:mainfrom
VitaliyAndreevich:feature/add_fwupdate_cb

Conversation

@VitaliyAndreevich
Copy link

@VitaliyAndreevich VitaliyAndreevich commented Nov 2, 2025

Ussage example:

sett.onUpdateFWStart([]() {
  Serial.printf("Update started\n\r");
});

sett.onUpdateFWProgress([](size_t current, size_t final) {
  size_t progress= (100 * current) / final;
  Serial.printf("update %d\n\r", progress);
});

sett.onUpdateFWDone([](bool res) {
  Serial.printf("Update done. res = %d\n\r", res);
});

sett.onFileRemove([](Text file_name) {
  Serial.printf("Remove file <%s>\n\r", file_name.toString().c_str());
});

Signed-off-by: Vitaliy Andreevich <praviytapok@yandex.ru>
@VitaliyAndreevich VitaliyAndreevich changed the title OTA: Add firmware update callbacks OTA: Add firmware update, file remove callbacks Nov 8, 2025
Signed-off-by: Vitaliy Andreevich <praviytapok@yandex.ru>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant