meshtastic- Experiments with Meshtastic 🛰️ |
git clone git://git.acid.vegas/meshtastic.git |
Log | Files | Refs | Archive | README | LICENSE |
MQTT.md (956B)
1 # Meshtastic MQTT 2 > Work in progress still, come back later... 3 4 ###### default.conf 5 ``` 6 # Insecure 7 listener 1883 8 9 # TLS/SSL 10 listener 8883 11 acl_file /etc/mosquitto/conf.d/aclfile 12 protocol mqtt 13 require_certificate false 14 certfile /etc/mosquitto/certs/cert.pem 15 cafile /etc/mosquitto/certs/fullchain.pem 16 keyfile /etc/mosquitto/certs/privkey.pem 17 18 listener 8083 19 protocol websockets 20 certfile /etc/mosquitto/certs/cert.pem 21 cafile /etc/mosquitto/certs/fullchain.pem 22 keyfile /etc/mosquitto/certs/privkey.pem 23 ``` 24 25 ###### /etc/mosquitto/conf.d/aclfile 26 ``` 27 user acidvegas 28 topic readwrite msh/# 29 30 user mate 31 topic readwrite msh/# 32 33 pattern write $SYS/broker/connection/%c/state 34 ``` 35 36 ###### mosquito.conf 37 ``` 38 pid_file /run/mosquitto/mosquitto.pid 39 40 per_listener_settings true 41 allow_anonymous false 42 persistence true 43 persistence_location /var/lib/mosquitto 44 password_file /etc/mosquitto/passwd 45 46 log_dest file /var/log/mosquitto/mosquitto.log 47 48 include_dir /etc/mosquitto/conf.d 49 ```