feat: report OTA download progress over MQTT

This commit is contained in:
chenjintao
2026-10-13 17:29:19 +08:00
parent c53ab581d0
commit b2c78208bf
4 changed files with 215 additions and 2 deletions
@@ -16,8 +16,11 @@ typedef enum {
} banban_fullfota2_result_t;
typedef void (*banban_fullfota2_finished_cb_t)(int result);
/* Download percentage in 10% steps; reporting must not cancel the download. */
typedef void (*banban_fullfota2_progress_cb_t)(int progress);
int banban_fullfota2_start(const char *url,
banban_fullfota2_progress_cb_t progress_cb,
banban_fullfota2_finished_cb_t finished_cb);
int banban_fullfota2_is_running(void);
void banban_fullfota2_discard_staged_package(void);