A fast MQTT dashboard application and rule engine framework written in C for Linux, Raspberry Pi and WINDOWS.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

115 lines
3.5 KiB

.TH MQTT2SERIAL 1 04-Jan-2020 "Version 1.00" "MQTT Hyperdash"
mqtt2serial \- bridge mqtt messages from and to a serial device.
.B mqtt2serial
.RI "[ " options " ] "
mqtt2serial connects to a mqtt broker and a serial (tty) device. This is
a generic application (similar to the rule engine framework) to asynchronoulsy
pass mqtt content to a serial line, and also accept asynchronously content from
that line.
This way, an arduino could be easily hooked to the serial line and pass its
values and accept commands from it.
The format used on the serial line is an ASCII representation of the message
payload. If needed binary data is encoded with base64.
The format actually is be:
MQTT:=, where the payload should be enclosed with "
Each line must be terminated by a \\n charackter.
The TOPIC would be a local topics name, and the framework can add a prefix to it
to make it available on the mqtt broker. The prefix is removed if data is
received from the broker and passed to the serial line.
.BR \-q
Be quiet and print less debug information.
.BR \-v
Be more verbose and print debug information.
.BR \-\-broker " " \fIurl\fR
specify the broker url. By default "tcp://localhost:1883" is used.
.BR \-\-user " " \fIusername\fR
specify a username for the broker.
.BR \-\-passwd " " \fIpasswd\fR
specify a password for the broker.
.BR \-\-prefix " " \fIprefix\fR
specify a prefix to all TOPICs on the serial line.
.BR \-\-json
expand JSON properties. This is the default.
.BR \-\-nojson
do not expand JSON properties.
.BR \-\-device " " \fI<devicename>\fR
specify the name of the serial device; e.g. /dev/ttyUSB0 .
If the device cannot be found the interface will search for the first matching
device by incrementing the number (last character of the device).
.BR \-\-baudrate " " \fIrate\fR
specify the baud rate used on the device. (Default 9600 baud, 8,N,1).
.BR \-\-version
shows version, program and other information and exits.
.BR \-h ", " \-\-help
print a short help and exit.
For detailed help and description of the MQTT principle take a
look at the README file coming with the package.
mqtt2serial --broker tcp://localhost:1883 --prefix "ARDUINO" --device /dev/ttyUSB0 --baudrate 9600
Page was created for V.1.03
If you find a bug in the MQTT Hyperdash software, you should report it. But
first, you should make sure that it really is a bug, and that it appears in
the latest version of the MQTT-Hyperdash package that you have.
Once you have determined that a bug actually exists, mail a bug report to
kollo@users.sourceforge.net. If you have a fix, you are welcome to mail that
as well! Suggestions may be mailed to the bug tracking system.
Comments and bug reports concerning this manual page should be directed to
Markus Hoffmann <kollo@users.sourceforge.net>
Copyright (C) 2019-2021 Markus Hoffmann
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
mosquitto(1), mosquitto_pub(1), mosquitto_sub(1), hyperdash(1), mqtt-list-topics(1)