mqtt-show-msg

command module
v0.0.0-...-a519aef Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2022 License: MIT Imports: 7 Imported by: 0

README

mqtt-show-msg

mqtt-show-msg is a MQTT monitor tool written by go that scubscribe to topic you want to monitor and print out the messages. If the messages is in JSON format, mqtt-show-msg will pretty print out the messages.

I always use this tool to debug MQTT message while I am programming based on MQTT.

Usage

mqtt-show-msg [option] ...
  option:
    -i [IP]        : MQTT Broker ip address
    -p [Port]      : MQTT Broker port
    -u [Username]  : MQTT Broker username
    -w [Password]  : MQTT Broker password
    -t [Topic]     : Topic to be monitored.
    -o             : Only show topic

Example:

$ mqtt-show-msg -i test.mosquitto.org -t "#"
$ mqtt-show-msg -i 10.0.0.1 -p 8888 -u sam -w 12345 -t "/sensor/#"

Author

Sam Lin (sammtcbn)

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL