MQTT - bellrichm/weewx-jas GitHub Wiki
[[[mqtt](/bellrichm/weewx-jas/wiki/[[mqtt)]]
cleanSession =
If true
the client and server persistent state is deleted on successful connect.
disconnect =
The number of seconds that the MQTT connection will stay connected (it will be disconnected after this amount). The default us not set, meaning there is no 'auto disconnect'.
enable =
Turns MQTT on or off.
host =
The MQTT server. The default is localhost.
keepAliveInterval =
Maximum period in seconds allowed between communications with the broker. The default is 60.
password =
Authentication password for this connection.
port =
The port to connect to. The default is 1883.
reconnect =
Sets whether the client will automatically attempt to reconnect to the server if the connection is lost.
timeout=
If the connect has not succeeded within this number of seconds, it is deemed to have failed.
topic =
The topic to subscribe to.
Deprecated, use [[[[topics](/bellrichm/weewx-jas/wiki/[[[topics)]]]
and [[[[[topic-name](/bellrichm/weewx-jas/wiki/[[[[topic-name)]]]]
.
username =
Authentication username for this connection.
useSSL =
If true, use an SSL Websocket connection.
[[[[topics](/bellrichm/weewx-jas/wiki/[[[topics)]]]
Each subsection is a topic to subscribe to.
[[[[[topic-name](/bellrichm/weewx-jas/wiki/[[[[topic-name)]]]]
Each topic to subscribe to has its own section that is the name of the topic to subscribe to.
[[[[[[fields](/bellrichm/weewx-jas/wiki/[[[[[fields)]]]]]
Each subsection us a field that needs to be configured.
[[[[[[[field-name](/bellrichm/weewx-jas/wiki/[[[[[[field-name)]]]]]]
The name of the observation in the MQTT payload.
name =
The WeeWX name.