Appearance
struct ota_server_t
Represents an OTA (Over-The-Air) server. More...
#include <ota/ota.h>
Public Attributes
| Name | |
|---|---|
| ota_protocol_t | protocol the protocol, the update should be downloaded with |
| char * | hostname the DNS hostname of the OTA server |
| uint16_t | port the TCP/UDP port number for the OTA download |
| char * | filename the OTA filename in case of OTA_PROTO_HTTP / OTA_PROTO_HTTPS |
| struct ota_server_t | ota_http_params |
| unsigned char * | cert |
| unsigned int | cert_len < the x.509 certificate of the serer for OTA_PROTO_HTTPS / OTA_PROTO_TLS |
| struct ota_server_t | ota_tls_params |
Detailed Description
cpp
struct ota_server_t;Represents an OTA (Over-The-Air) server.
This struct contains the necessary information to connect to an OTA server, including the protocol, hostname, and port number.
Public Attributes Documentation
variable protocol
cpp
ota_protocol_t ota_server_t::protocolthe protocol, the update should be downloaded with
variable hostname
cpp
char* ota_server_t::hostnamethe DNS hostname of the OTA server
variable port
cpp
uint16_t ota_server_t::portthe TCP/UDP port number for the OTA download
variable filename
cpp
char* ota_server_t::filenamethe OTA filename in case of OTA_PROTO_HTTP / OTA_PROTO_HTTPS
variable ota_http_params
cpp
struct ota_server_t ota_server_t::ota_http_paramsvariable cert
cpp
unsigned char* ota_server_t::certvariable cert_len
cpp
unsigned int ota_server_t::cert_len< the x.509 certificate of the serer for OTA_PROTO_HTTPS / OTA_PROTO_TLS
variable ota_tls_params
cpp
struct ota_server_t ota_server_t::ota_tls_params