MQTT Client broker information structure.

This structure holds the information required to connect to an MQTT broker, including the broker's IP address, port number, connection encryption status, connection timeout, keep-alive interval, and keep-alive retries.

Public Attributes#

sl_ip_address_t

IP address of the broker.

uint16_t

Port number of the broker.

bool

Indicates if the connection is encrypted. This field would be deprecated in future releases. Users are recommended to use tls_flags in sl_mqtt_client_configuration_t.

uint16_t

MQTT connection timeout in milliseconds.

uint16_t

Keep-alive interval of the MQTT connection in seconds.

uint16_t

Number of MQTT ping retries.

Public Attribute Documentation#

ip#

sl_ip_address_t sl_mqtt_broker_t::ip

IP address of the broker.


port#

uint16_t sl_mqtt_broker_t::port

Port number of the broker.


is_connection_encrypted#

bool sl_mqtt_broker_t::is_connection_encrypted

Indicates if the connection is encrypted. This field would be deprecated in future releases. Users are recommended to use tls_flags in sl_mqtt_client_configuration_t.


connect_timeout#

uint16_t sl_mqtt_broker_t::connect_timeout

MQTT connection timeout in milliseconds.


keep_alive_interval#

uint16_t sl_mqtt_broker_t::keep_alive_interval

Keep-alive interval of the MQTT connection in seconds.


keep_alive_retries#

uint16_t sl_mqtt_broker_t::keep_alive_retries

Number of MQTT ping retries.