examples: add local config templates for MQTT and serial simulator

This commit is contained in:
sh4un
2026-01-22 21:37:00 -05:00
parent b30461b056
commit 397cbde6bf
2 changed files with 46 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
; examples/config.local.mqtt.ini
; Local config for testing the bridge with a local MQTT broker (recommended)
[DEFAULT]
MESHTASTIC_SERIAL_PORT = /dev/ttyUSB0
EXTERNAL_TRANSPORT = mqtt
; MQTT settings
MQTT_BROKER = localhost
MQTT_PORT = 1883
MQTT_TOPIC_IN = ammb/to_meshtastic
MQTT_TOPIC_OUT = ammb/from_meshtastic
MQTT_CLIENT_ID = ammb_test_client
MQTT_QOS = 0
MQTT_RETAIN_OUT = False
; Bridge & common
EXTERNAL_NETWORK_ID = test_net
BRIDGE_NODE_ID = !ammb_test
MESSAGE_QUEUE_SIZE = 100
LOG_LEVEL = DEBUG
; API (optional)
API_ENABLED = True
API_HOST = 127.0.0.1
API_PORT = 8080

View File

@@ -0,0 +1,20 @@
; examples/config.local.serial.ini
; Local config for testing the bridge with a serial simulator (Windows example)
[DEFAULT]
MESHTASTIC_SERIAL_PORT = COM5 ; simulator writes here
EXTERNAL_TRANSPORT = serial
; Serial settings (external transport)
SERIAL_PORT = COM6 ; bridge connects to this (simulator pairs with COM5)
SERIAL_BAUD_RATE = 9600
SERIAL_PROTOCOL = json_newline
; Bridge & common
EXTERNAL_NETWORK_ID = test_net
BRIDGE_NODE_ID = !ammb_test
MESSAGE_QUEUE_SIZE = 100
LOG_LEVEL = DEBUG
; API (optional)
API_ENABLED = False