Gå till innehållet

MQTT-server info

Vår MQTT-broker är en Mosquitto-server som körs på Debian 12.

Konfigurationsfil

/etc/mosquitto/conf.d/custom.conf
connection_messages true
listener 8883 0.0.0.0
certfile /etc/mosquitto/certs/fullchain1.pem
keyfile /etc/mosquitto/certs/privkey1.pem
dhparamfile /etc/mosquitto/conf.d/dhparam.pem
#log_type all

listener 1883 0.0.0.0
allow_anonymous false

password_file /etc/mosquitto/msh
acl_file /etc/mosquitto/acl

# bridge-configurations
connection liamcottle
bridge_cafile /etc/ssl/certs/ca-certificates.crt
address mqtt.meshtastic.liamcottle.net:8883
topic msh/#
cleansession false
notifications false
remote_clientid meshatSE
remote_password uplink
remote_username uplink
start_type automatic

connection meshtasticmqtt
bridge_cafile /etc/ssl/certs/ca-certificates.crt
address mqtt.meshtastic.org:8883
topic msh/# out
cleansession false
notifications false
remote_clientid meshatSEBroker
remote_password large4cats
remote_username meshdev
start_type automatic

ACL

/etc/mosquitto/acl
user msh
topic sthlmmesh/#
topic msh/#
topic meshse/#
topic mshse/#

Brygga egen broker till Meshat.se

Vill du brygga din egen MQTT-broker upp till oss kan du använda uppgifterna ovan. Notera att allt under topic msh/# skickas vidare till andra kartor.

Vill du inte att dina noder ska skickas vidare kan du skriva om topic till mshse.

Exempel: mosquitto-konfiguration

Om TLS inte är viktigt för dig kan du hoppa över bridge_cafile och använda port 1883.

connection meshatSE
address mqtt.meshat.se:8883
bridge_cafile /etc/ssl/certs/ca-certificates.crt
topic msh/# out
cleansession false
notifications false
remote_clientid (namn på din klient som ska synas i loggen i vår broker)
remote_password msh
remote_username msh
start_type automatic

Exempel: skriv om topic

connection meshatSE
address mqtt.meshat.se:8883
bridge_cafile /etc/ssl/certs/ca-certificates.crt
topic # out 0 msh/ mshse/
cleansession false
notifications false
remote_clientid (namn på din klient som ska synas i loggen i vår broker)
remote_password msh
remote_username msh
start_type automatic

Relaterat