feat: OTA über HTTP mit Trailer-Prüfung
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user