|Top Previous Next|
This function will change the credentials used to connect to the MQTT server.
Some MQTT servers require that the credentials used to authenticate the client must be changed every time the client connects.
By calling qmttCredentialsSet, this can be done without having to close the connection and then opening a new connection with the changed credentials.
handle : INT
The handle to the MQTT connection.
username : STRING
The new user name to use when connecting to the server.
The username will not be changed if empty
password : STRING
The new password to use when connecting to the server.
Setting the password requires that a username is present, either in this function or in mqttOpen.
The password will not be changed if empty
tls_certificate : STRING
The new client certificate to use when connecting to the server.
The tls_certificate will not be changed if empty
tls_password : STRING
The new password for the client certificate.
The tls_password will not be changed if empty
reconnect : BOOL (Default FALSE)
FUNCTION mqttCredentialsSet : INT;