Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
00imvj00 opened this issue Dec 8, 2020 · 2 comments
Open
Assignees

Comments

@00imvj00
Copy link
Owner

00imvj00 commented Dec 8, 2020

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 00imvj00 self-assigned this Dec 8, 2020
@MathiasKoch
Copy link
Contributor

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

@00imvj00
Copy link
Owner Author

00imvj00 commented Dec 8, 2020

This will work. This is just a feature requirement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants