Fix property issue
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "rust-mqtt"
|
name = "rust-mqtt"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
authors = ["Ondrej Babec <ond.babec@gmail.com>"]
|
authors = ["Ondrej Babec <ond.babec@gmail.com>"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
resolver = "2"
|
resolver = "2"
|
||||||
|
|||||||
@@ -305,6 +305,7 @@ impl<'a> Property<'a> {
|
|||||||
Ok(0x24) => Ok(Property::MaximumQoS(buff_reader.read_u8()?)),
|
Ok(0x24) => Ok(Property::MaximumQoS(buff_reader.read_u8()?)),
|
||||||
Ok(0x25) => Ok(Property::RetainAvailable(buff_reader.read_u8()?)),
|
Ok(0x25) => Ok(Property::RetainAvailable(buff_reader.read_u8()?)),
|
||||||
Ok(0x26) => Ok(Property::UserProperty(buff_reader.read_string_pair()?)),
|
Ok(0x26) => Ok(Property::UserProperty(buff_reader.read_string_pair()?)),
|
||||||
|
Ok(0x27) => Ok(Property::MaximumPacketSize(buff_reader.read_u32()?)),
|
||||||
Ok(0x28) => Ok(Property::WildcardSubscriptionAvailable(
|
Ok(0x28) => Ok(Property::WildcardSubscriptionAvailable(
|
||||||
buff_reader.read_u8()?,
|
buff_reader.read_u8()?,
|
||||||
)),
|
)),
|
||||||
|
|||||||
Reference in New Issue
Block a user