MQTT-SIMPLE(1)
MQTT-SIMPLE(1) π
okay so bestie, this is the MQTT-SIMPLE(1) manual from the User Contributed Perl Documentation section, and the whole vibe is βvery simple MQTT implementation.β It's giving tiny utility, main character energy, no cap.
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"
mqtt-simple --ssl --insecure ...
mqtt-simple --ssl --ca ca.crt --cert client.crt --key client.key
DESCRIPTION πΈ
okay so this is just a simple utility program. It doesn't do much. Specifically, all the QoS features are unsupported. Also, don't expect fancy error messages and such :-)
That's the whole disclaimer, bestie. Lowkey iconic. π
COMMAND LINE OPTIONS π
-h,--hostaddress[:port] β MQTT server to connect to, and it is required. Do not skip this one, bestie.-p,--publishtopic β Publish a message. Uses the message given with-m, or will read lines from stdin, and publish a message for each given line.-m,--messagemessage β Message to publish. Requires-p.-r,--retainβ Causes messages published with-pto have the"retain"flag on.-s,--subscribefilter β Subscribe to the given topic filter. Use the standard MQTT wildcards like"+"and"#". Outputs matching published messages on stdout. Can be given multiple times.-e,--exceptfilter β Suppress published messages that match filter. Can be given multiple times.--countnumber β Quit after receiving number messages.--message-onlyβ Output only the message values, without the topics.-1,--oneβ Shortcut for--count 1 --message-only.--color/--no-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. Color is enabled by default if stdout is a terminal.--rawβ Pass ASCII control characters unaltered. By default, they're replaced by"^@"notation or, when--coloris enabled, reverse video characters. For example, an ASCII newline would be displayed as"^J"unless--rawis used.-d,--datetimeformat β Prefix messages with a timestamp. Optionally, a format forstrftimecan be supplied.-u,--user,--usernameusername β Specify a username. Overrides the environment variableMQTT_SIMPLE_USERNAME.--pass,--passwordpassword β Specify a password. Overrides the environment variableMQTT_SIMPLE_PASSWORD.
SSL options π
--sslβ Use SSL instead of unencrypted connection.--insecureβ Disable SSL certificate validation and enable clear text passwords. Useful for testing, bad idea in production. Overrides the environment variablesMQTT_SIMPLE_SSL_INSECUREandMQTT_SIMPLE_ALLOW_INSECURE_LOGIN.
bestie, it literally says bad idea in production β respect the warning, fr fr. π¨
--capath β The Certificate Authority to validate against. path can be a file or a directory. If unspecified,IO::Socket::SSLattempts to use the system wide CA configuration. Overrides the environment variableMQTT_SIMPLE_SSL_CA.--certpath /--keypath β A client certificate with its key. Override the environment variablesMQTT_SIMPLE_SSL_CERTandMQTT_SIMPLE_SSL_KEY.
LICENSE π
Pick your favourite OSI approved license :)
http://www.opensource.org/licenses/alphabetical
That's it, that's the license section, and honestly? Slay. β¨
AUTHOR π
Juerd Waalboer <juerd@tnx.nl>
SEE ALSO π
Net::MQTT::Simple
okay bye bestie π«Ά β this page is from perl v5.32.1, dated 2025-09-03. Stay hydrated, subscribe responsibly, and remember: no cap, the facts stay facts. π
π¦ where this page comes from
- epel 9: perl-Net-MQTT-Simple 1.33-1.el9 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms