12 Nov 2016 16:10:10 UTC
- Distribution: Net-MQTT
- Source (raw)
- Browse (raw)
- How to Contribute
- Repository (git clone)
- Testers (1547 / 0 / 0)
- KwaliteeBus factor: 1
- 99.17% Coverage
- License: perl_5
- Activity24 month
- Download (31.36KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
net-mqtt-pub - Perl script for publishing to an MQTT topic
# messages one per line on stdin echo message | net-mqtt-pub [options] topic # message as command line arguments net-mqtt-pub [options] topic this is a message
This script publishes each line from stdin as an MQTT message on the given topic.
Print a brief help message.
Print the manual page.
The host running the MQTT service. The default is
The port of the running MQTT service. The default is 1883.
The client id to use in the connect message. The default is 'NetMQTTpm' followed by the process id of the process.
Include more verbose output. Without this option the script only outputs errors
- -keepalive NNN
The keep alive timer value. Defaults to 120 seconds. For simplicity, it is also currently used as the connection timeout.
Set the retain flag on the message. Default is not set.
This is not official IBM code. I work for IBM but I'm writing this in my spare time (with permission) for fun.
Mark Hindess <firstname.lastname@example.org>
This software is copyright (c) 2014 by Mark Hindess.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Module Install Instructions
To install Net::MQTT::Message, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Net::MQTT::Message
For more information on module installation, please visit the detailed CPAN module installation guide.