Skip to content

Catch callback reason code for disconnect #384

Answered by bretambrose
HAK-CODE asked this question in Q&A
Discussion options

You must be logged in to vote

Assuming you're using MQTT5:

For MQTT311, server-side disconnects are disallowed and there is only one affirmative connack reason code (0), so there isn't really anything available.

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