02.07 β Mosquitto MQTT (LAN + TLS)
MQTT enables:
- internet-linked mesh users
- Discord and other consumers
- telemetry aggregation
Install
apt install mosquitto mosquitto-clients
Authentication
mosquitto_passwd -c /etc/mosquitto/passwd skynet2mqtt
chown mosquitto:mosquitto /etc/mosquitto/passwd
chmod 640 /etc/mosquitto/passwd
Global Auth Config
/etc/mosquitto/conf.d/auth.conf
allow_anonymous false
password_file /etc/mosquitto/passwd
LAN Listener (1883)
/etc/mosquitto/conf.d/mesh.conf
listener 1883 0.0.0.0
TLS Listener (8883)
/etc/mosquitto/conf.d/mesh-tls.conf
listener 8883 0.0.0.0
certfile /etc/mosquitto/certs/server.crt
keyfile /etc/mosquitto/certs/server.key
tls_version tlsv1.2