MQTT::username

Description

This command gets or sets the username field of MQTT CONNECT messages.

Syntax

MQTT::username [<user_name>]

MQTT::username

  • Get the user-name field of MQTT CONNECT message.

MQTT::username <user_name>

  • Set the user-name field of MQTT CONNECT message to specified string.

Examples