Skip to content

Commit

Permalink
V5 disconnect packet reason code and properties (#272)
Browse files Browse the repository at this point in the history
* mqttbytes v5 disconnect packet implementation added

* mqttbytes v5 Packet enum updated
  • Loading branch information
rfael authored Apr 21, 2021
1 parent 663a684 commit 407a08c
Show file tree
Hide file tree
Showing 3 changed files with 431 additions and 9 deletions.
2 changes: 1 addition & 1 deletion mqttbytes/src/v5/connack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ impl ConnAck {
}

fn len(&self) -> usize {
let mut len = 1 // sesssion present
let mut len = 1 // session present
+ 1; // code

if let Some(properties) = &self.properties {
Expand Down
Loading

0 comments on commit 407a08c

Please sign in to comment.