paho.mqtt.java
paho.mqtt.java copied to clipboard
java client always disconnect and reconnect
Bug exists in MQTTv3 Client on Release Version 1.2.0 (Master Branch)
In what scenario will mqtt clients proactively disconnect themselves? My client frequently disconnects and reconnects
That could occur if your clients share the same client_id. In that case when those clients have auto-reconnect feature turned on, then they will disconnect each other on a reconnect attempt.
Obviously that behavior might depend on a MQTT broker you're using.