Skip to content

Commit 907b7db

Browse files
committed
Render config value in template.
1 parent 7db3f5d commit 907b7db

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cmd/lora-gateway-bridge/cmd/configfile.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ skip_crc_check = {{ .PacketForwarder.SkipCRCCheck }}
4343
# LoRa Server MQTT backend. Therefore only change these values when
4444
# absolutely needed.
4545
# Use "{{ "{{ .MAC }}" }}" as an substitution for the LoRa gateway MAC.
46-
uplink_topic_template="gateway/{{ "{{ .MAC }}" }}/rx"
47-
downlink_topic_template="gateway/{{ "{{ .MAC }}" }}/tx"
48-
stats_topic_template="gateway/{{ "{{ .MAC }}" }}/stats"
49-
ack_topic_template="gateway/{{ "{{ .MAC }}" }}/ack"
46+
uplink_topic_template="{{ .Backend.MQTT.UplinkTopicTemplate }}"
47+
downlink_topic_template="{{ .Backend.MQTT.DownlinkTopicTemplate }}"
48+
stats_topic_template="{{ .Backend.MQTT.StatsTopicTemplate }}"
49+
ack_topic_template="{{ .Backend.MQTT.AckTopicTemplate }}"
5050
5151
# MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws)
5252
server="{{ .Backend.MQTT.Server }}"

0 commit comments

Comments
 (0)