MQTT Client credentials structure.

This structure holds the credentials required for the MQTT client to authenticate with the broker. It includes the lengths of the username and password, and a flexible array to store both the username and password.

Public Attributes#

uint16_t

Length of the username. It should not exceed 120 bytes which includes NULL termination character.

uint16_t

Length of the password. It should not exceed 60 bytes which includes NULL termination character.

uint8_t

Flexible array to store both the username and password.

Public Attribute Documentation#

username_length#

uint16_t sl_mqtt_client_credentials_t::username_length

Length of the username. It should not exceed 120 bytes which includes NULL termination character.


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

password_length#

uint16_t sl_mqtt_client_credentials_t::password_length

Length of the password. It should not exceed 60 bytes which includes NULL termination character.


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

data#

uint8_t sl_mqtt_client_credentials_t::data[]

Flexible array to store both the username and password.


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