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#
IP address of the broker.
Port number of the broker.
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.
MQTT connection timeout in milliseconds.
Keep-alive interval of the MQTT connection in seconds.
Number of MQTT ping retries.
Public Attribute Documentation#
ip#
sl_ip_address_t sl_mqtt_broker_t::ip
IP address of the broker.
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.
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.
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.
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.
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.
215
of file components/service/mqtt/inc/sl_mqtt_client_types.h