Skip to content

struct ota_t

Represents an Over-The-Air (OTA) update. More...

#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_server_tserver
the ota_server_t information about the OTA server
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

Detailed Description

cpp
struct ota_t;

Represents an Over-The-Air (OTA) update.

This struct contains the necessary information to perform an OTA update, including the target device, OTA server details, update size, checksum algorithm, and checksum value.

Public Attributes Documentation

variable target

cpp
int ota_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 server

cpp
ota_server_t ota_t::server

the ota_server_t information about the OTA server

variable size_bytes

cpp
uint32_t ota_t::size_bytes

the size of the image to be downloaded

variable cs_algo

cpp
ota_checksum_algorithm_t ota_t::cs_algo

the algorithm used to calculate the checksum

variable cs

cpp
ota_checksum_t ota_t::cs

the checksum of the image