MQTT Debugging – Subscribe to Everything

Writing this down because I have to look it up every time we’re testing something with MQTT:

mosquitto_sub -v -h mqttserver.example.com -t +/#

The -v outputs the topic name, -h is the hostname, and -t is a topic filter … the filter +/# is all topics.

Leave a Reply

Your email address will not be published. Required fields are marked *