MQTT subscription (v3)

Hi,

i have a Chirpstack Server (v3) and the following directories in /etc
chirpstack
chirpstack-application-server
chirpstack-gateway-bridge
chirpstack-network-server

The idea is, to subscribe the mqtt topics mit the an mqtt client. e.g.: application/#

The problem is, that my mqtt Client connects correctly with the MQTT Broker of the Chirpstack Server, but the connection crashes every 2-4 seconds. The client reconnects but crashes again and again.

Is there anything you can recommend?

Thanks!

Are you using the same Client ID for multiple MQTT client?

Changing a client ID has no effect

MQTT crashing every few seconds is usually due to sharing Client ID for the same MQTT server.

Must use unique Client ID for each MQTT client.

Another possible thing to check is to enable Mqtt keep alive.

Added to the already suggested options, have you looked at your MQTT broker logs? You might need to change the log level to debug to get more information. If it is the MQTT broker that kills the connection, then you will probably find the reason in the logs…