-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend and fix subscription identifier encoding and decoding (#46)
* Fix subscription identifier parsing The subscription identifier is encoded as var int according to [MQTT-3.8.2.1.2]. Add a parsing test with and without subscription identifier. * Add subscription identifier decoding checks MQTT-3.8.2.1.2 Accorindng to MQTT-3.8.2.1.2 the subscription identifier must be set exactly once and must not be 0. Extend the property parsing for subscribe packets with those checks. * Extend subscription identifiers The Publish packet can have multiple subscription identifiers according to MQTT-3.3.2.3.8. Subscription identifiers must not have a value 0.
- Loading branch information
Showing
3 changed files
with
137 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters