mosquitto_sub

mosquitto_sub

TLDR

Subscribe to the topic sensors/temperature information with Quality of Service (QoS) set to 1. (The default hostname is localhost and port 1883)

>_ mosquitto_sub -t [sensors/temperature] -q [1]
copy

Subscribe to all broker status messages publishing on iot.eclipse.org port 1885 and print published messages verbosely

>_ mosquitto_sub -v -h "iot.eclipse.org" -p 1885 -t [\$SYS/#]
copy

Subscribe to multiple topics matching a given pattern. (+ takes any metric name)

>_ mosquitto_sub -t [sensors/machines/+/temperature/+]
copy

Copied to clipboard
free 100$ digital ocean credit