MQTT Client Configuration structure.

Public Attributes#

bool

Whether to automatically connect back to broker in case of disconnection.

uint8_t

Maximum retry count of auto reconnect.

uint16_t

Minimum back off time between two successive reconnect attempts.

uint16_t

Maximum back off time between two successive reconnect attempts.

bool

Clean session flag to send to broker in connect request.

Version of client MQTT.

uint16_t

Port number of client.

sl_net_credential_id_t

Credential id for username and password of MQTT connect request.

uint8_t *

Pointer to MQTT client id.

uint8_t

Length of client id. Length should not exceed 60 bytes including NULL termination character.

TLS flags for various MQTT options: sl_mqtt_tls_flag_t.

Public Attribute Documentation#

auto_reconnect#

bool sl_mqtt_client_configuration_t::auto_reconnect

Whether to automatically connect back to broker in case of disconnection.


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

retry_count#

uint8_t sl_mqtt_client_configuration_t::retry_count

Maximum retry count of auto reconnect.


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

minimum_back_off_time#

uint16_t sl_mqtt_client_configuration_t::minimum_back_off_time

Minimum back off time between two successive reconnect attempts.


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

maximum_back_off_time#

uint16_t sl_mqtt_client_configuration_t::maximum_back_off_time

Maximum back off time between two successive reconnect attempts.


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

is_clean_session#

bool sl_mqtt_client_configuration_t::is_clean_session

Clean session flag to send to broker in connect request.


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

mqt_version#

sl_mqtt_version_t sl_mqtt_client_configuration_t::mqt_version

Version of client MQTT.


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

client_port#

uint16_t sl_mqtt_client_configuration_t::client_port

Port number of client.


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

credential_id#

sl_net_credential_id_t sl_mqtt_client_configuration_t::credential_id

Credential id for username and password of MQTT connect request.


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

client_id#

uint8_t* sl_mqtt_client_configuration_t::client_id

Pointer to MQTT client id.


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

client_id_length#

uint8_t sl_mqtt_client_configuration_t::client_id_length

Length of client id. Length should not exceed 60 bytes including NULL termination character.


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

tls_flags#

sl_mqtt_tls_flag_t sl_mqtt_client_configuration_t::tls_flags

TLS flags for various MQTT options: sl_mqtt_tls_flag_t.


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