mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-21 19:51:50 +00:00
Add OTA url check
This commit is contained in:
1 parent
676db01d73
commit
52144d12f0
4 files changed
+418
No files matched your search
@@ -3105,6 +3105,7 @@ void mg_rpc_list(struct mg_rpc_req *r);
|
||||
|
||||
|
||||
|
||||
|
||||
#define MG_OTA_NONE 0 // No OTA support
|
||||
#define MG_OTA_STM32H5 1 // STM32 H5
|
||||
#define MG_OTA_STM32H7 2 // STM32 H7
|
||||
@@ -3140,6 +3141,10 @@ void mg_rpc_list(struct mg_rpc_req *r);
|
||||
bool mg_ota_begin(size_t new_firmware_size); // Start writing
|
||||
bool mg_ota_write(const void *buf, size_t len); // Write chunk, aligned to 1k
|
||||
bool mg_ota_end(void); // Stop writing
|
||||
void mg_ota_url_check(struct mg_mgr *mgr,
|
||||
const char *current_version,
|
||||
const char *metadata_url,
|
||||
void (*fn)(const char *status));
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user