Skip to content

struct ota_server_t

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

#include <ota/ota.h>

Public Attributes

Name
ota_protocol_tprotocol
the protocol, the update should be downloaded with
char *hostname
the DNS hostname of the OTA server
uint16_tport
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_tota_http_params
unsigned char *cert
unsigned intcert_len
< the x.509 certificate of the serer for OTA_PROTO_HTTPS / OTA_PROTO_TLS
struct ota_server_tota_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::protocol

the protocol, the update should be downloaded with

variable hostname

cpp
char* ota_server_t::hostname

the DNS hostname of the OTA server

variable port

cpp
uint16_t ota_server_t::port

the TCP/UDP port number for the OTA download

variable filename

cpp
char* ota_server_t::filename

the 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_params

variable cert

cpp
unsigned char* ota_server_t::cert

variable 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