Link Search Menu Expand Document

Unsubscribe


Unsubscribes the currently active context client from a list of topics and is therefore only available in Shell mode.

Synopsis

clientID@Host>  unsub   -t <topics> [-t <topics>]... 
                        [-up <userProperties>]...
                        [-h] 

Options

OptionLong VersionExplanationDefault
-t--topicA topic from which the client will unsubscribe from. 
-up--userPropertyA user property of the unsubscribe message. 

Example

Connect a client which is identified by myClient and subscribe it to two topics afterwards. Then unsubscribe from one of the two topics:

mqtt> con -i myClient
myClient@localhost> sub -t topic1 -t topic2
myClient@localhost> unsub -t topic1
mqtt>