|
| 1 | +# This configuration provides a Semtech UDP packet-forwarder backend and |
| 2 | +# integrates with a MQTT broker. Many options and defaults have been omitted |
| 3 | +# for simplicity. |
| 4 | +# |
| 5 | +# See https://www.loraserver.io/lora-gateway-bridge/install/config/ for a full |
| 6 | +# configuration example and documentation. |
| 7 | + |
| 8 | + |
| 9 | +# Gateway backend configuration. |
| 10 | +[backend] |
| 11 | +# Backend type. |
| 12 | +type="semtech_udp" |
| 13 | + |
| 14 | + # Semtech UDP packet-forwarder backend. |
| 15 | + [backend.semtech_udp] |
| 16 | + |
| 17 | + # ip:port to bind the UDP listener to |
| 18 | + # |
| 19 | + # Example: 0.0.0.0:1700 to listen on port 1700 for all network interfaces. |
| 20 | + # This is the listeren to which the packet-forwarder forwards its data |
| 21 | + # so make sure the 'serv_port_up' and 'serv_port_down' from your |
| 22 | + # packet-forwarder matches this port. |
| 23 | + udp_bind = "0.0.0.0:1700" |
| 24 | + |
| 25 | + # Managed packet-forwarder configuration. |
| 26 | + # |
| 27 | + # By configuring one or multiple managed packet-forwarder sections, the |
| 28 | + # LoRa Gateway Bridge updates the configuration when the backend receives |
| 29 | + # a configuration change, after which it will restart the packet-forwarder. |
| 30 | + # |
| 31 | + # Example (this configuration can be repeated): |
| 32 | + # |
| 33 | + # [[backend.semtech_udp.configuration]] |
| 34 | + # # Gateway ID. |
| 35 | + # # |
| 36 | + # # The LoRa Gateway Bridge will only apply the configuration updates for this |
| 37 | + # # gateway ID. |
| 38 | + # gateway_id="0102030405060708" |
| 39 | + |
| 40 | + # # Base configuration file. |
| 41 | + # # |
| 42 | + # # This file will be used as base-configuration and will not be overwritten on |
| 43 | + # # a configuration update. This file needs to exist and contains the base |
| 44 | + # # configuration and vendor specific |
| 45 | + # base_file="/etc/lora-packet-forwarder/global_conf.json" |
| 46 | + |
| 47 | + # # Output configuration file. |
| 48 | + # # |
| 49 | + # # This will be the final configuration for the packet-forwarder, containing |
| 50 | + # # a merged version of the base configuration + the requested configuration |
| 51 | + # # update. |
| 52 | + # # Warning: this file will be overwritten on a configuration update! |
| 53 | + # output_file="/etc/lora-packet-forwarder/local_conf.json" |
| 54 | + |
| 55 | + # # Restart command. |
| 56 | + # # |
| 57 | + # # This command is issued by the LoRa Gateway Bridge on a configuration |
| 58 | + # # change. Make sure the LoRa Gateway Bridge process has sufficient |
| 59 | + # # permissions to execute this command. |
| 60 | + # restart_command="/etc/init.d/lora-packet-forwarder restart" |
| 61 | + |
| 62 | +# Integration configuration. |
| 63 | +[integration] |
| 64 | +# Payload marshaler. |
| 65 | +# |
| 66 | +# This defines how the MQTT payloads are encoded. Valid options are: |
| 67 | +# * protobuf: Protobuf encoding (this will become the LoRa Gateway Bridge v3 default) |
| 68 | +# * json: JSON encoding (easier for debugging, but less compact than 'protobuf') |
| 69 | +marshaler="protobuf" |
| 70 | + |
| 71 | + # MQTT integration configuration. |
| 72 | + [integration.mqtt] |
| 73 | + # Event topic template. |
| 74 | + event_topic_template="gateway/{{ .GatewayID }}/event/{{ .EventType }}" |
| 75 | + |
| 76 | + # Command topic template. |
| 77 | + command_topic_template="gateway/{{ .GatewayID }}/command/#" |
| 78 | + |
| 79 | + # MQTT authentication. |
| 80 | + [integration.mqtt.auth] |
| 81 | + # Type defines the MQTT authentication type to use. |
| 82 | + # |
| 83 | + # Set this to the name of one of the sections below. |
| 84 | + type="generic" |
| 85 | + |
| 86 | + # Generic MQTT authentication. |
| 87 | + [integration.mqtt.auth.generic] |
| 88 | + # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws) |
| 89 | + server="tcp://127.0.0.1:1883" |
| 90 | + |
| 91 | + # Connect with the given username (optional) |
| 92 | + username="" |
| 93 | + |
| 94 | + # Connect with the given password (optional) |
| 95 | + password="" |
| 96 | + |
0 commit comments