The context name of a client consisting of the client identifier concatenated by a @ with the hostname. The hostname may be omitted and will be filled with the default host.
myClient@localhostclient2@broker.hivemq.com or simply the clientID (default @localhost will be added)
Options
Option
Long Version
Explanation
Default
-i
--identifier
The unique identifier of a client.
-h
--host
The host the client is connected to.
localhost
Help Options
Option
Long Version
Explanation
--help
Display help message for command.
--version
Display version information of the cli.
Example
Connect two clients and switch the active context to the first connected client
mqtt> con -i client1
client1@localhost> exit
mqtt> con -i client2 -h broker.hivemq.com
client2@broker.hivemq.com> switch client1
client1@localhost> switch client2@broker.hivemq.com
client2@broker.hivemq.com>