MQTT frequent connection and disconnection #1997
Unanswered
kushalgandhi26
asked this question in
Q&A
Replies: 1 comment
-
If you have 2 clients connecting with the same clientId this is normal, the last one connecting will be disconnected and it will try to reconnect again indeterminately |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using 4.3.14-beta version on react app running on raspberry-pi and I have emqx server where mqtt clients connect. But I am facing frequent disconnection/connection with static id for particular raspberry-pi and if I make client id dynamic for particular raspberry pi, I am getting multiple clients connected for the same raspberry pi and same ip address.
How can I fix this? And is there any wrong with version I am using?
I have also handled the onConnect and onDisconnect event?
Please help
Thank you
Beta Was this translation helpful? Give feedback.
All reactions