Skip to content

Server does not receive events after connection resumed #302

Answered by jmklix
cjacky475 asked this question in Q&A
Discussion options

You must be logged in to vote

According to the log you linked you are reconnection with a clean session

[ Thread-13] c.e.t.components.MQTTClient : Connection resumed: clean session

This means that the subscriptions from the previous session are lost and you won't receive any more events. This can be fixed by setting clean session to false. .withCleanSession(false). You can see this being setup for the examples here

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by jmklix
Comment options

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