Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Will messages of MQTT-SN clients not published #26

Open
gazally opened this issue Jul 13, 2016 · 1 comment
Open

Will messages of MQTT-SN clients not published #26

gazally opened this issue Jul 13, 2016 · 1 comment

Comments

@gazally
Copy link

gazally commented Jul 13, 2016

I noticed my MQTT clients' wills were getting published but not MQTT-SN clients. Upon some investigation into the code I found MQTTProtocol_keepalive in MQTTProtocolClient.c which is responsible for closing timed out client sessions with the send_will flag set. It iterates through bstate->clients and checks whether client->protocol == PROTOCOL_MQTTS. However that is always going to be false because the MQTT-SN clients are not in bstate->clients, they are in bstate->mqtts_clients.

@aignacio
Copy link

aignacio commented Sep 2, 2016

up!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants