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

Extra 2 bytes at the beginning of payload #1

Open
agolovchuk opened this issue Nov 5, 2024 · 0 comments
Open

Extra 2 bytes at the beginning of payload #1

agolovchuk opened this issue Nov 5, 2024 · 0 comments

Comments

@agolovchuk
Copy link

Hi!

It seems that the QoS level in PUBLISH packets is currently hardcoded to 0, which creates a minor mismatch with the MQTT protocol (specifically section 3.3.2.2). According to the spec, the Packet Identifier field should only be present if the QoS level is 1 or 2. Because of this, there’s a small artifact in the message.

writer.write_u16(0); // Packet identifier

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

1 participant