Hi all,
Recently I would like to send gateway data to my application, which locates in another server with domain name (app.test).
Recently, devices data can be received, but gateway data can not.
I tried several methods in "chirpstack-gateway-bridge.toml", but they do not work well.
- Set [intergation.mqtt]
[integration.mqtt]
server="tcp://app.test:port"
event_topic_template="chirpstack/gateway/{{ .GatewayID }}/event/{{ .EventType }}"
state_topic_template="chirpstack/gateway/{{ .GatewayID }}/state/{{ .StateType }}"
result: mqtt broker of app.test:port receives nothing
- Set [integration.mqtt.auth.generic]
[integration.mqtt]
event_topic_template="chirpstack/gateway/{{ .GatewayID }}/event/{{ .EventType }}"
state_topic_template="chirpstack/gateway/{{ .GatewayID }}/state/{{ .StateType }}"
[integration.mqtt.auth.generic]
servers=["tcp://mosquitto:1883","tcp://app.test:port"]
username=""
password=""
result: local mosquitto can not receive data,
only app.test:port able to receive data, but the topic is not matched
topics become [region]/gateway/.....
- "chirpstack" prefix [integration.mqtt]
result: topic recieve in broker is still " [region]/gateway/..." , not "gateway/..."
My aim:
Sending gateway data to the mqtt broker in app.test:port, with prefix "chirpstack/gateway/..."
I also tried:
Set up a script to get and push received topic from mosquitto:1883 to app.test:port.
However only "[region]/gateway/..." works.
Does any developers had experience on this issue ?
Thank you.