Skip to content

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 <[email protected]>
@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 <[email protected]>
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