Skip to content

struct ota_custom_t

Represents an Over-The-Air (OTA) update using a custom download mechanism. #include <ota/ota.h>

Public Attributes

Name
inttarget
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_tdownloader
the callback struct to be used for downloading the OTA image
uint32_tsize_bytes
the size of the image to be downloaded
ota_checksum_algorithm_tcs_algo
the algorithm used to calculate the checksum
ota_checksum_tcs
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::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.

variable downloader

cpp
ota_downloader_t ota_custom_t::downloader

the callback struct to be used for downloading the OTA image

variable size_bytes

cpp
uint32_t ota_custom_t::size_bytes

the size of the image to be downloaded

variable cs_algo

cpp
ota_checksum_algorithm_t ota_custom_t::cs_algo

the algorithm used to calculate the checksum

variable cs

cpp
ota_checksum_t ota_custom_t::cs

the checksum of the image

variable ctx

cpp
void* ota_custom_t::ctx

the context pointer to be passed to the downloader callbacks