Skip to content

Nack rejected messages to MQTT 5.0 client #9034

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

Merged
merged 1 commit into from
Aug 9, 2023
Merged

Nack rejected messages to MQTT 5.0 client #9034

merged 1 commit into from
Aug 9, 2023

Conversation

ansd
Copy link
Member

@ansd ansd commented Aug 9, 2023

since MQTT 5.0 supports negative acknowledgements thanks to reason codes in the PUBACK packet.

We could either choose reason code 128 or 131. The description code for
131 applies for rejected messages, hence this commit uses 131:

The PUBLISH is valid but the receiver is not willing to accept it.

@mergify mergify bot added the bazel label Aug 9, 2023
since MQTT 5.0 supports negative acknowledgements thanks to reason codes
in the PUBACK packet.

We could either choose reason code 128 or 131. The description code for
131 applies for rejected messages, hence this commit uses 131:
> The PUBLISH is valid but the receiver is not willing to accept it.
@ansd ansd requested a review from deadtrickster August 9, 2023 15:04
@ansd ansd marked this pull request as ready for review August 9, 2023 15:04
@ansd ansd added this to the 3.13.0 milestone Aug 9, 2023
@deadtrickster
Copy link
Contributor

For me it all makes sense, but I've found new confirms suite extremely hard to read. I got lost in those U{n} very quickly - hard to keep initial state in mind for each paragraph.

@michaelklishin michaelklishin merged commit 17c9acf into main Aug 9, 2023
@michaelklishin michaelklishin deleted the mqtt-nack branch August 9, 2023 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants