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#
Configuration flags.
Server IP address.
Port number.
Requested resource URL in string format.
Host name.
User-configurable header fields to append to the default HTTP/HTTPS header.
Username for server authentication.
Password for server authentication.
Public Attribute Documentation#
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.
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"