-
Notifications
You must be signed in to change notification settings - Fork 899
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Repeating exception: "Client is connected (32100)" #209
Comments
Hi @algrid! I also had this issue when connection state changes very fast, Paho does not detects this so network is too slow or simply disconnects, MqttService thinks is still connected to the broker (Comms object does not change the connection state). So a workaround I found was handling the exception that is catched on reconnect() method from MqttConnection class. More or less, it is something like this:
For this, I created changeKeepAlive() method on AlarmPingSender: With this, I assure I really had the connection established because I force sending a PINGREQ. Regards, |
@jflavio1 I'm also getting the same issue. I can't understand that how sending ping to server will connect to server if its disconnected. |
I am also getting the same problem. Did you guys resolve this ? |
I have the same problem. I can't found a solution. Have someone already solve the issue? |
Please fill out the form below before submitting, thank you!
Android API Version Bug Seen on: API 19
Android Version Bug Seen on: 4.4.2
Description of Bug:
My app starts and connects to a MQTT broker. Everything is done almost the same way as in the example app. On first run after install everything is ok, but after app restart I start getting error messages every 5 min: "Failed to connect to: tcp://my-broker:1883 Client is connected (32100)".
I had the same problem with the example app from master (but currently I get build errors when I download master and try to build the example app).
Console Log output (if available):
The text was updated successfully, but these errors were encountered: