Skip to content

Conversation

@johnhe4
Copy link
Contributor

@johnhe4 johnhe4 commented Nov 12, 2025

Playing with the MQTT client led to some incorrect error handling. For example, if the credentials were invalid, or the protocol was not supported by the server, the error log only showed Parsing packet failed and would not invoke the client callback. These changes attempt to address that.

goto send_reason_and_close;
case 5:
par->reason = LMQCP_REASON_UNSUPPORTED_PROTOCOL +
par->conn_rc - 1;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm guessing this logic used to work at one point? Maybe the MQTT error code enum was updated to support 5.0 errors and that's where this broke.

@lws-team
Copy link
Member

Thanks, it's pushed on main.

@lws-team lws-team closed this Nov 14, 2025
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

Successfully merging this pull request may close these issues.

2 participants