meshtastic/website/docs/software/settings/mqtt.md

50 lines
1.8 KiB
Markdown
Raw Normal View History

2021-04-27 14:06:41 -07:00
---
id: mqtt
title: MQTT Settings
sidebar_label: MQTT
---
2021-05-04 09:22:20 -07:00
:::note
This is still under development, use at your own risk. Report any bugs you see by creating an issue on the [meshtastic/Meshtastic-device](https://github.com/meshtastic/Meshtastic-device) repository or comment on our forum.
:::
2021-04-27 14:06:41 -07:00
2021-05-04 09:22:20 -07:00
:::caution
You may want to change your [GPS location sharing settings](gps#location_share) if you are enabling this. It will broadcast your location over the internet.
:::
2021-04-27 14:06:41 -07:00
2021-05-04 09:22:20 -07:00
## Overview
2021-04-27 14:06:41 -07:00
2021-05-04 09:22:20 -07:00
If your device is connected to WiFi you can enable it to forward messages along to an MQTT server. This allows users on the local mesh to communicate with users on the internet.
2021-04-27 14:06:41 -07:00
## Settings
2021-05-03 13:15:01 -07:00
| Setting | Acceptable Values | Default |
| :-----: | :---------------: | :-----: |
2021-05-04 09:22:20 -07:00
| mqtt_disabled | `true`, `false` | `false` |
2021-05-03 13:15:01 -07:00
| mqtt_server | `string` | `""` |
2021-05-04 09:22:20 -07:00
| is_uplink_enabled | `true`, `false` | `false` |
| is_downlink_enabled | `true`, `false` | `false` |
2021-05-03 13:15:01 -07:00
### mqtt_disabled
2021-05-04 09:22:20 -07:00
If a meshtastic node is able to reach the internet it will normally attempt to gateway any channels that are marked as `is_uplink_enabled` or `is_downlink_enabled`. But if this flag is set, all MQTT features will be disabled and no servers will be contacted.
2021-05-03 13:15:01 -07:00
### mqtt_server
The server to use for our MQTT global message gateway feature. If not set, the default server will be used
2021-04-27 14:06:41 -07:00
2021-05-04 09:22:20 -07:00
### is_uplink_enabled
This is a channel specific setting. If your channel has this set to `true` and you are connected to WiFi, the device will forward along messages to whatever MQTT server is specified in `mqtt_server`.
### is_downlink_enabled
This is a channel specific setting. If your channel has this set to `true` and you are connected to WiFi, the device will forward along messages from the MQTT server to the mesh from this device.
2021-04-27 14:06:41 -07:00
## Details
2021-05-03 15:25:24 -07:00
2021-05-04 09:22:20 -07:00
<!--- TODO --->
2021-05-03 15:25:24 -07:00
### CLI Examples
2021-05-04 09:22:20 -07:00
<!--- TODO --->