Si91x specific HTTP OTAF parameters.

This structure contains the parameters required for HTTP Over-The-Air Firmware (OTAF) updates specific to the Si91x series.

Note

  • The following table lists the flags that can be used with this function:

Flags

Description

BIT(0)

Set this bit to enable HTTPS feature.

BIT(1)

Set this bit to enable IPv6. By default, it is configured to IPv4.

BIT(2)

Set this bit to support TLS Version 1.0 if HTTPS is enabled.

BIT(3)

Set this bit to support TLS Version 1.2 if HTTPS is enabled.

BIT(4)

Set this bit to support TLS Version 1.1 if HTTPS is enabled.

BIT(6)

Set this bit to use HTTP version 1.1

BIT(9)

Set this bit to specify index of SSL cert to be used for HTTPS.

BIT(10)

Set this bit to specify index of SSL cert to be used for HTTPS.

Public Attributes#

uint16_t

Configuration flags.

uint8_t *

Server IP address.

uint16_t

Port number.

uint8_t *

Requested resource URL in string format.

uint8_t *

Host name.

uint8_t *

User-configurable header fields to append to the default HTTP/HTTPS header.

uint8_t *

Username for server authentication.

uint8_t *

Password for server authentication.

Public Attribute Documentation#

flags#

uint16_t sl_si91x_http_otaf_params_t::flags

Configuration flags.


ip_address#

uint8_t* sl_si91x_http_otaf_params_t::ip_address

Server IP address.


port#

uint16_t sl_si91x_http_otaf_params_t::port

Port number.

Default: 80 for HTTP, 443 for HTTPS.


resource#

uint8_t* sl_si91x_http_otaf_params_t::resource

Requested resource URL in string format.

  • The maximum supported HTTP URL is 2048 bytes when the SL_SI91X_FEAT_LONG_HTTP_URL bit is enabled in the feature_bit_map.

  • If the SL_SI91X_FEAT_LONG_HTTP_URL bit is disabled, the maximum supported length for the HTTP URL is (872 - (length of user_name + length of password) - length of hostname - length of IP address) bytes, excluding delimiters.


host_name#

uint8_t* sl_si91x_http_otaf_params_t::host_name

Host name.


extended_header#

uint8_t* sl_si91x_http_otaf_params_t::extended_header

User-configurable header fields to append to the default HTTP/HTTPS header.

The extended header can have multiple header fields, each ended by "\r\n" (0xD 0xA). Example: key1:value1"\r\n"key2:value2"\r\n"


user_name#

uint8_t* sl_si91x_http_otaf_params_t::user_name

Username for server authentication.


password#

uint8_t* sl_si91x_http_otaf_params_t::password

Password for server authentication.