I'm running Mosquitto command mosquitto_sub to subscribe to a topic and see the messages published there.
I would like to be able to see the MQTT properties used when someone publishes a message in that topic.
Is there any way?
Thanks
I'm running Mosquitto command mosquitto_sub to subscribe to a topic and see the messages published there.
I would like to be able to see the MQTT properties used when someone publishes a message in that topic.
Is there any way?
Thanks
Copyright © 2021 Jogjafile Inc.
You can use the format option (
-F) that takes a pattern, for example:In the example above we are printing the Content type property (
%C).Don't forget the version option (
-V) usingmqttv5.You can find more printable properties here: https://mosquitto.org/man/mosquitto_sub-1.html#outputformat (see MQTT related parameters)