Skip to main content

MQTT Module Configuration

If your device is connected to Internet via wifi or ethernet, you can enable it to forward packets along to an MQTT server. This allows users on the local mesh to communicate with users on the internet. One or more channels must be enabled as uplink and/or downlink for protobufs to be transmitted from and/or to the mesh (See channels). Without these settings the node will still connect to MQTT server and send status messages.

The MQTT module config options are: Enabled, Server Address, Username, Password, Encryption Enabled and JSON Enabled. MQTT Module config uses an admin message sending a ConfigModule.MQTT protobuf.

Settingsโ€‹

MQTT Module Config Valuesโ€‹

Enabledโ€‹

Enables the MQTT module.

Server Addressโ€‹

The server to use for MQTT. If not set, the default server public will be used.

Usernameโ€‹

MQTT Server username to use (most useful for a custom MQTT server). If using a custom server, this will be honored even if empty. If using the default public server, this will only be honored if set, otherwise the device will use the default username.

Passwordโ€‹

MQTT password to use (most useful for a custom MQTT server). If using a custom server, this will be honored even if empty. If using the default server, this will only be honored if set, otherwise the device will use the default password

Encryption Enabledโ€‹

Whether to send encrypted or decrypted packets to MQTT. This parameter is only honored if you also set server (the default official mqtt.meshtastic.org server can handle encrypted packets) Decrypted packets may be useful for external systems that want to consume meshtastic packets.

JSON Enabledโ€‹

Enable the sending / consumption of JSON packets on MQTT. These packets are not encrypted, but offer an easy way to integrate with systems that can read JSON.

MQTT Module Config Client Availabilityโ€‹

info

MQTT module config is not available for Apple.