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

Review / TEST spec chapter 2 #26

Open
9 tasks
anyflow opened this issue May 6, 2016 · 0 comments
Open
9 tasks

Review / TEST spec chapter 2 #26

anyflow opened this issue May 6, 2016 · 0 comments

Comments

@anyflow
Copy link
Owner

anyflow commented May 6, 2016

  • [MQTT-2.2.2-1] Where a flag bit is marked as “Reserved” in Table 2.2 - Flag Bits, it is reserved for future use and MUST be set to the value listed in that table.
  • [MQTT-2.2.2-2] If invalid flags are received, the receiver MUST close the Network Connection.
  • [MQTT-2.3.1-1] SUBSCRIBE, UNSUBSCRIBE, and PUBLISH (in cases where QoS > 0) Control Packets MUST contain a non-zero 16-bit Packet Identifier.
  • [MQTT-2.3.1-3] If a Client re-sends a particular Control Packet, then it MUST use the same Packet Identifier in subsequent re-sends of that packet. The Packet Identifier becomes available for reuse after the Client has processed the corresponding acknowledgement packet. In the case of a QoS 1 PUBLISH this is the corresponding PUBACK; in the case of QO2 it is PUBCOMP. For SUBSCRIBE or UNSUBSCRIBE it is the corresponding SUBACK or UNSUBACK.
  • [MQTT-2.3.1-6] A PUBACK, PUBREC or PUBREL Packet MUST contain the same Packet Identifier as the PUBLISH Packet that was originally sent.
  • [MQTT-2.3.1-5] A PUBLISH Packet MUST NOT contain a Packet Identifier if its QoS value is set to 0.
  • [MQTT-2.3.1-2] Each time a Client sends a new packet of one of these types it MUST assign it a currently unused Packet Identifier.
  • [MQTT-2.3.1-4] The same conditions [MQTT-2.3.1-3] apply to a Server when it sends a PUBLISH with QoS >0.
  • [MQTT-2.3.1-7] Similarly to [MQTT-2.3.1-6], SUBACK and UNSUBACK MUST contain the Packet Identifier that was used in the corresponding SUBSCRIBE and UNSUBSCRIBE Packet respectively.
@anyflow anyflow changed the title REVIEW Review / TEST spec chapter 2 May 6, 2016
@anyflow anyflow self-assigned this May 6, 2016
@anyflow anyflow added this to the version 0.9.9 milestone Oct 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant