Appearance
struct ota_custom_t
Represents an Over-The-Air (OTA) update using a custom download mechanism. #include <ota/ota.h>
Public Attributes
| Name | |
|---|---|
| int | target the hardware target of the image to be downloaded. the respective functions, registered with ota_register_target_handler will be invoked when ota_update is called. |
| ota_downloader_t | downloader the callback struct to be used for downloading the OTA image |
| uint32_t | size_bytes the size of the image to be downloaded |
| ota_checksum_algorithm_t | cs_algo the algorithm used to calculate the checksum |
| ota_checksum_t | cs the checksum of the image |
| void * | ctx the context pointer to be passed to the downloader callbacks |
Public Attributes Documentation
variable target
cpp
int ota_custom_t::targetthe hardware target of the image to be downloaded. the respective functions, registered with ota_register_target_handler will be invoked when ota_update is called.
variable downloader
cpp
ota_downloader_t ota_custom_t::downloaderthe callback struct to be used for downloading the OTA image
variable size_bytes
cpp
uint32_t ota_custom_t::size_bytesthe size of the image to be downloaded
variable cs_algo
cpp
ota_checksum_algorithm_t ota_custom_t::cs_algothe algorithm used to calculate the checksum
variable cs
cpp
ota_checksum_t ota_custom_t::csthe checksum of the image
variable ctx
cpp
void* ota_custom_t::ctxthe context pointer to be passed to the downloader callbacks