Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

MQTT frequent connection and disconnection#1997

Unanswered
kushalgandhi26 asked this question inQ&A
Discussion options

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

You must be logged in to vote

Replies: 1 comment

Comment options

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

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@kushalgandhi26@robertsLando

[8]ページ先頭

©2009-2025 Movatter.jp