A simple MQTT version 3.1.1 client that will subscribe to topics and print the messages that it receives. More information: https://mosquitto.org/man/mosquitto_sub-1.html.
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
iot.eclipse.org
port 1885 and print published messages verbosely:mosquitto_sub -v -h "iot.eclipse.org" -p 1885 -t \$SYS/#
mosquitto_sub -t sensors/machines/+/temperature/+