Fix property issue

This commit is contained in:
Ondrej Babec 2022-04-28 15:48:05 +02:00
parent 4845bb20aa
commit 37bf023dbf
No known key found for this signature in database
GPG Key ID: 13E577E3769B2079
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "rust-mqtt"
version = "0.1.1"
version = "0.1.2"
authors = ["Ondrej Babec <ond.babec@gmail.com>"]
edition = "2021"
resolver = "2"

View File

@ -305,6 +305,7 @@ impl<'a> Property<'a> {
Ok(0x24) => Ok(Property::MaximumQoS(buff_reader.read_u8()?)),
Ok(0x25) => Ok(Property::RetainAvailable(buff_reader.read_u8()?)),
Ok(0x26) => Ok(Property::UserProperty(buff_reader.read_string_pair()?)),
Ok(0x27) => Ok(Property::MaximumPacketSize(buff_reader.read_u32()?)),
Ok(0x28) => Ok(Property::WildcardSubscriptionAvailable(
buff_reader.read_u8()?,
)),