forked from iarv/Akita-Meshtastic-Meshcore-Bridge
examples: add local config templates for MQTT and serial simulator
This commit is contained in:
26
examples/config.local.mqtt.ini
Normal file
26
examples/config.local.mqtt.ini
Normal 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
|
||||
20
examples/config.local.serial.ini
Normal file
20
examples/config.local.serial.ini
Normal 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
|
||||
Reference in New Issue
Block a user