Mosquitto - how to see all messages the broker sees?

23,219 views
Skip to first unread message

Scott K

unread,
Jun 2, 2014, 11:00:13 AM6/2/14
to ope...@googlegroups.com
Whilst troubleshooting MQTT devices, it occurred to me that sometimes I wish I could see all MQTT messages that the Mosquitto broker sees, instead of a on a specific topic.  Is there a way to do this?

Marcel Verpaalen

unread,
Jun 2, 2014, 11:21:44 AM6/2/14
to ope...@googlegroups.com

You can use the mosquitto_sub program to that. Assuming you are on the local server something like:
mosquitto_sub -t /#

# equals all topics

Op maandag 2 juni 2014 17:00:13 UTC+2 schreef Scott K:

Jan-Piet Mens

unread,
Jun 2, 2014, 11:28:03 AM6/2/14
to ope...@googlegroups.com
> Whilst troubleshooting MQTT devices, it occurred to me that sometimes I
> wish I could see all MQTT messages that the Mosquitto broker sees, instead
> of a on a specific topic. Is there a way to do this?

Somebody answered this question for you on the Mosquitto list; use a
wildcard. (#)

-JP

Scott K

unread,
Jun 2, 2014, 11:36:25 AM6/2/14
to ope...@googlegroups.com
thank you all for the prompt response!
Reply all
Reply to author
Forward
0 new messages