feat: OTA über HTTP mit Trailer-Prüfung

This commit is contained in:
Michael Sauer
2026-09-12 01:36:57 +02:00
parent ebee9e8e61
commit aa8151c3d6
8 changed files with 146 additions and 19 deletions
+14
View File
@@ -0,0 +1,14 @@
#ifndef NL_OTA_H
#define NL_OTA_H
#include <stdbool.h>
void nl_ota_init(void);
/* Starts a download task for an http:// URL. 0 = started, -1 = busy or invalid. */
int nl_ota_start(const char *url);
bool nl_ota_busy(void);
/* NULL, or one of: download, crc, trailer, device_mismatch, hash, busy */
const char *nl_ota_last_error(void);
void nl_ota_set_error(const char *e);
#endif