Contains OTA HTTP Statuses, function type definitions and http interface structure. More...
#include <stddef.h>#include <stdint.h>

Go to the source code of this file.
Data Structures | |
| struct | OtaHttpInterface_t |
| OTA Event Interface structure. More... | |
Typedefs | |
| typedef OtaHttpStatus_t(* | OtaHttpInit_t) (char *pUrl) |
| Init OTA Http interface. | |
| typedef OtaHttpStatus_t(* | OtaHttpRequest_t) (uint32_t rangeStart, uint32_t rangeEnd) |
| Request file block over Http. | |
| typedef OtaHttpStatus_t(* | OtaHttpDeinit) (void) |
| Deinit OTA Http interface. | |
Enumerations | |
| enum | OtaHttpStatus_t { OtaHttpSuccess = 0 , OtaHttpInitFailed = 0xc0 , OtaHttpDeinitFailed , OtaHttpRequestFailed } |
| The OTA HTTP interface return status. More... | |
Contains OTA HTTP Statuses, function type definitions and http interface structure.
| typedef OtaHttpStatus_t(* OtaHttpInit_t) (char *pUrl) |
Init OTA Http interface.
This function parses the pre-signed url and initializes connection.
| [in] | pUrl | Pointer to the pre-signed url for downloading update file. |
| typedef OtaHttpStatus_t(* OtaHttpRequest_t) (uint32_t rangeStart, uint32_t rangeEnd) |
Request file block over Http.
This function requests file block over Http from the rangeStart and rangeEnd.
| [in] | rangeStart | Starting index of the file data to be requested. |
| [in] | rangeEnd | End index of the file data to be requested. |
| typedef OtaHttpStatus_t(* OtaHttpDeinit) (void) |
Deinit OTA Http interface.
This function cleanups Http connection and other data used for requesting file blocks using the pre-signed url.