By default the event topic
# from https://www.chirpstack.io/docs/chirpstack/configuration.html
# MQTT integration configuration.
[integration.mqtt]
# Event topic template.
event_topic="application/{{application_id}}/device/{{dev_eui}}/event/{{event}}"
Is there a documented list of all variables that can be interpolated in event_topic
? I’d like to add the tennant id in the topic. Would this work?
event_topic="{{ tennant_id }}/application/{{application_id}}/device/{{dev_eui}}/event/{{event}}"
Also, the interpolation variables in the gateway bride seem to be a little bit different:
# from https://www.chirpstack.io/docs/chirpstack-gateway-bridge/configuration.html
# Integration configuration.
[integration]
# Payload marshaler.
#
# This defines how the MQTT payloads are encoded. Valid options are:
# * protobuf: Protobuf encoding
# * json: JSON encoding (for debugging)
marshaler="protobuf"
# MQTT integration configuration.
[integration.mqtt]
# Event topic template.
event_topic_template="gateway/{{ .GatewayID }}/event/{{ .EventType }}"
Is there a list of properties that I can use in the event topic? Here I would also like to prepend the TennantID as well. So would this work?
event_topic_template="{{ .TennantID }}/gateway/{{ .GatewayID }}/event/{{ .EventType }}"