Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Changed returntype of the Connect() function from byte to the complete Connack Message - Only way to determine the existence of the persistent session #137

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Daniel900
Copy link

The Code of the Client and MqttMsgConnack class already got changed to support the sessionPresent flag of mqtt v3.1.1.
But there is no way to get this flag, because the connect function just returns the return code and not the complete connack message.
This flag is very useful when working with persistent sessions to determine if a session already exists or every topic should be subscribed. (double subscription also works but if you have any retained messages (as I do) they'll get pulled twice)

@Daniel900 Daniel900 changed the title Changed returntype from byte to the complete Connack Message Changed returntype of the Connect() function from byte to the complete Connack Message - Only way to determine the existence of the persistent session Jul 11, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant