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.


Definition at line 209 of file components/service/mqtt/inc/sl_mqtt_client_types.h

port#

uint16_t sl_mqtt_broker_t::port

Port number of the broker.


Definition at line 210 of file components/service/mqtt/inc/sl_mqtt_client_types.h

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.


Definition at line 212 of file components/service/mqtt/inc/sl_mqtt_client_types.h

connect_timeout#

uint16_t sl_mqtt_broker_t::connect_timeout

MQTT connection timeout in milliseconds.


Definition at line 213 of file components/service/mqtt/inc/sl_mqtt_client_types.h

keep_alive_interval#

uint16_t sl_mqtt_broker_t::keep_alive_interval

Keep-alive interval of the MQTT connection in seconds.


Definition at line 214 of file components/service/mqtt/inc/sl_mqtt_client_types.h

keep_alive_retries#

uint16_t sl_mqtt_broker_t::keep_alive_retries

Number of MQTT ping retries.


Definition at line 215 of file components/service/mqtt/inc/sl_mqtt_client_types.h