Add (private) OTA libs

This commit is contained in:
Pim van Pelt
2017-12-03 23:56:16 +01:00
parent 135f9033aa
commit f598290e54
10 changed files with 801 additions and 1 deletions

View File

@ -0,0 +1,29 @@
/*
* Copyright (c) 2014-2016 Cesanta Software Limited
* All rights reserved
*
* An updater implementation that fetches FW from the given URL.
*/
#ifndef CS_MOS_LIBS_OTA_HTTP_CLIENT_SRC_MGOS_OTA_HTTP_CLIENT_H_
#define CS_MOS_LIBS_OTA_HTTP_CLIENT_SRC_MGOS_OTA_HTTP_CLIENT_H_
#include <stdbool.h>
#include "mgos_updater_common.h"
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#if MGOS_ENABLE_UPDATER
bool mgos_ota_http_client_init(void);
void mgos_ota_http_start(struct update_context *ctx, const char *url);
#endif
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* CS_MOS_LIBS_OTA_HTTP_CLIENT_SRC_MGOS_OTA_HTTP_CLIENT_H_ */