Lora-gateway-bridge: unsubscribing from topic

Hi,
I’m facing the same issue when I increase the heartbeat interval in the packet forwarder of my Kerlink Gateway:

log
Set Heartbeat from 30 to 3600:
Feb 16 17:36:44 MY_SERVER chirpstack-gateway-bridge[21469]: time="2021-02-16T17:36:44+01:00" level=info msg="integration/mqtt: subscribing to topic" qos=0 topic="gateway2/7076ff00XXXXXXXX/command/#"
Feb 16 17:37:14 MY_SERVER chirpstack-gateway-bridge[21469]: time="2021-02-16T17:37:14+01:00" level=info msg="integration/mqtt: publishing event" event=stats qos=0 stats_id=3f4617e7-4f22-4127-add3-19741814b636 topic=gateway2/7076ff00XXXXXXXX/event/stats
Feb 16 17:37:44 MY_SERVER chirpstack-gateway-bridge[21469]: time="2021-02-16T17:37:44+01:00" level=info msg="integration/mqtt: publishing event" event=stats qos=0 stats_id=16cb1971-2c27-41b3-814c-6dfc60014095 topic=gateway2/7076ff00XXXXXXXX/event/stats
Feb 16 17:38:14 MY_SERVER chirpstack-gateway-bridge[21469]: time="2021-02-16T17:38:14+01:00" level=info msg="integration/mqtt: publishing event" event=stats qos=0 stats_id=654cb435-1bd7-414a-8aab-b289364a7b19 topic=gateway2/7076ff00XXXXXXXX/event/stats
Feb 16 17:38:15 MY_SERVER chirpstack-gateway-bridge[21469]: time="2021-02-16T17:38:15+01:00" level=info msg="integration/mqtt: unsubscribing from topic" topic="gateway2/7076ff00XXXXXXXX/command/#"

Reduced Heartbeat from 3600 to 30:
Feb 16 17:54:19 MY_SERVER chirpstack-gateway-bridge[21469]: time="2021-02-16T17:54:19+01:00" level=info msg="integration/mqtt: subscribing to topic" qos=0 topic="gateway2/7076ff00XXXXXXXX/command/#"

Set Heartbeat from 30 to 90:
Feb 16 18:25:15 MY_SERVER chirpstack-gateway-bridge[21469]: time="2021-02-16T18:25:15+01:00" level=info msg="integration/mqtt: unsubscribing from topic" topic="gateway2/7076ff00XXXXXXXX/command/#"
Feb 16 18:25:34 MY_SERVER chirpstack-gateway-bridge[21469]: time="2021-02-16T18:25:34+01:00" level=info msg="integration/mqtt: subscribing to topic" qos=0 topic="gateway2/7076ff00XXXXXXXX/command/#"
Feb 16 18:28:15 MY_SERVER chirpstack-gateway-bridge[21469]: time="2021-02-16T18:28:15+01:00" level=info msg="integration/mqtt: unsubscribing from topic" topic="gateway2/7076ff00XXXXXXXX/command/#"
Feb 16 18:28:34 MY_SERVER chirpstack-gateway-bridge[21469]: time="2021-02-16T18:28:34+01:00" level=info msg="integration/mqtt: subscribing to topic" qos=0 topic="gateway2/7076ff00XXXXXXXX/command/#"

As one can see, the gateway-bridge unsubscribes after 100 sec.
After the gateway bridge has unsubscribed from command-topic no downlink messages are sent to the devices:

My Setup is:
semtech udp packet forwarder at kerlink Wirnet Station, GSM connection to MY_Server, gateway-bridge, mosquitto, networkserver and application server on MY_Server.
Is the unsubscribing timeout hard-coded or is there any configuration flag as in basic-station section but for backend type=“semtech” ? Because of the GSM connection I would like to reduce the traffic between gateway and backendserver. I know that I could install the gateway-bridge directly on the gateway, but I’m not allowed to open the mqtt port for the backend server.

Thank you,
Christian.

1 Like