NAME

mqtt-simple - Very simple MQTT implementation

SYNOPSIS

mqtt-simple -h mqtt.example.org -c -s "sensors/#" -s "debug/#" -s "#"

mqtt-simple -h mqtt.example.org -p "example/unretained" -m "message"

mqtt-simple -h mqtt.example.org -r -p "example/retained" -m "message"

tail -f logfile | mqtt-simple -h mqtt.example.org -p "log/example"

DESCRIPTION

This is just a simple utility program. It doesn't do much. Specifically, all the QoS and security features are unsupported. Also, don't expect fancy error messages and such :-)

COMMAND LINE OPTIONS

-h --host

MQTT server to connect to, required.

-p --publish topic

Publish a message. Uses the message given with -m, or will read lines from stdin, and publish a message for each given line.

-m --message message

Message to publish. Requires -p.

-r --retain

Causes messages published with -p to have the "retain" flag on.

-s --subscribe filter

Subscribe to the given topic filter. Use the standard MQTT wildcards like + and #. Outputs matching published messages on stdout.

-c --color

For each given -s, print the matching topic in a different color. Note that the first matching topic will be used for color selection, so specify the topics with the most specific one first, the least specific one (like #) last.

LICENSE

Pick your favourite OSI approved license :)

http://www.opensource.org/licenses/alphabetical

AUTHOR

Juerd Waalboer <juerd@tnx.nl>

SEE ALSO

Net::MQTT::Simple