void myqtt_conn_opts_set_auth ( MyQttConnOpts opts,
const char *  username,
const char *  password 
)

Allows to configure auth options to be used by the connection function.

Any previous configuration

Parameters
optsThe connection options where the operation will take place. It cannot be NULL.
usernameThe username to be configured on the connection. If the value provide is NULL, all authentication info will be removed from the connection options.
passwordThe password to be configured on the connection.