mqttrs icon indicating copy to clipboard operation
mqttrs copied to clipboard

Add `mqttrs::decode::check()` method, to see if the packet is decodable?

Open 00imvj00 opened this issue 5 years ago • 2 comments

The idea here is, before trying decoding and then returning Ok(None), what if we can create diff method, check() -> bool which will tell if the full packet is received or not based on the remaining_lenth?

00imvj00 avatar Dec 08 '20 03:12 00imvj00

I don't see why that wouldn't work.

MathiasKoch avatar Dec 08 '20 09:12 MathiasKoch

This will work. This is just a feature requirement.

00imvj00 avatar Dec 08 '20 09:12 00imvj00