anyevent−mqtt−sub − Perl script for subscribing to an MQTT topic
version 1.212810
anyevent−mqtt−sub [options] topic1 [topic2] [topic3] ...
This script subscribes to one or more MQTT topics and prints any messages that it receives to stdout.
−help
Print a brief help message.
−man
Print the manual page.
−host A.B.C.D
The host running the MQTT service. The default is 127.0.0.1.
−port NNNNN
The port of the running MQTT service. The default is 1883.
−qos N
The QoS level for the published message. The default is 0 ("MQTT_QOS_AT_MOST_ONCE").
−verbose
Include more verbose output.
−keepalive NNN
The keep alive timer value. Defaults to 120 seconds. For simplicity, it is also currently used as the connection/subscription timeout.
−−history−size NNN
Number of messages to keep for each topic. Defaults to keeping 20 messages.
−−no−retain
Ignore retained messages. That is, wait for new messages rather than processing existing retained messages.
AnyEvent::MQTT(3)
Mark Hindess <soft−[email protected]>
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.