# README
Simple command-line MQTT client
Command-line args follow those for mosquitto_sub
.
Commands:
qos QOS
: Set the QoS for subsequent operations.sub TOPIC
: Subscribe to the given topic.unsub TOPIC
: Unsubscribe from the given topic.retain (true|false)
: Set retain flag for subsequent pubs.pub TOPIC MSG
: Publish MSG to the given TOPIC.sleep DURATION
: Sleep for the given duration (e.g, '1s').
By default (controlled by -sh
), input lines are shell-expanded: Each
substring of the form <<SHELL_COMMAND>>
is replaced by the stdout
of executing SHELL_COMMAND
.