SharkSSL™ Embedded SSL/TLS Stack
MqttCredentials Struct Reference

Detailed Description

Optional credentials used when calling function SharkMQTT_connect.

#include <SharkMQTT.h>

Data Fields

const char * username
 Optional User Name (utf-8). More...
 
const U8 * password
 Optional Password (binary). More...
 
U16 pwdlen
 You must provide a password length if 'password' is non NULL.
 

Field Documentation

◆ password

const U8* MqttCredentials::password

Optional Password (binary).

Set to NULL if not used. [MQTT-3.1.3.5]. If username is set to NULL, the password MUST be set to NULL [MQTT-3.1.2-22].

◆ username

const char* MqttCredentials::username

Optional User Name (utf-8).

Set to NULL if not used. [MQTT-3.1.3.4]