-
Notifications
You must be signed in to change notification settings - Fork 3
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
make library no_std
#287
Comments
Heya! You did hit a few snags as the mqtt-format crate is currently being adapted to a newer layout. The v3 module is using the previous layout and will be rewritten in the future. I consider the MQTTv5 serialization/deserialization feature-complete, but there might still be a bug as I couldn't find a good way to verify it is correct and/or complete. TL;DR: If you only need MQTTv5, it should suit your needs. But it is not battle-tested yet, beyond normal development usage. If you need MQTTv3 or a mature library, then you will have to wait or use another library. Hope that clears it up! |
I think we have similar goals, I assume you want to build an MQTT server/client (library?) and I want to build an MQTT Broker (maybe library) for embedded. What are the places where you still see need for improvement on the parsing side? Maybe I can help. Regarding me, what might be useful is to have a method to check how many bytes have to be received till a packet can be deserialized or maybe some codec-like thing (I don't have a full picture of how to design the broker yet). I can't use a Tokio codec but I think having a function that predicts how much bytes have to be received might be useful that everybody can build their own codec |
I could provide a PR for |
I think the biggest help would be either:
Yeah! That's currently happening for
The MQTT Protocol gives this to you inherently. Since every MQTT Packet starts with the packet type and the length of the total packet, you would have to read up to 5 bytes before knowing the total length of a packet. Due to this, I did not see a good reason why having partial parsing would be a good idea. |
Hi I have found the mqtt-format library and it looks promising for developing an ESP32 MQTT broker. I have already got it running using MQTTv5 on the ESP32 by adjusting the Cargo.toml. Unfortunately two things:
What are your intentions with this? Since I need a working implementation of serialization and deserialization would you recommend me using this code? I am willing to get it running completely on
no_std
without allocator, but I'd like to know your plans on this library.Alternatively do you know another library that could suite this purpose?
The text was updated successfully, but these errors were encountered: