-
Notifications
You must be signed in to change notification settings - Fork 87
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
Document how to use CRC combined with COBS #117
Comments
@FrozenDroid I'm trying to do exactly the same, serialize using COBS with included CRC, then deserialize using COBS with included CRC. Did you get this working? Would you be able to provide a working example, if so? Perhaps this example could then also be included in the repo docs. |
It's very possible that you can't use CobsAccumulator and CRC out of the box for the reasons mentioned here. I might suggest copy and pasting and modifying CobsAccumulator into your project (it's only a few hundred lines) for now, though I would be happy to consider a version that handles flavors better for postcard 2.0! (cc #128) |
Thanks for this crate. It looks really promising!
However, I'm running into a snag:
Serializing a message using COBS with included CRC is obvious; the deserialization is not at all.
CobsAccumulator only takes a
T
type parameter which isDeserialize
, so I can't wrap any extra flavors in. I also haven't found a way on how to get a slice out of the accumulator. Using&[u8]
orheapless::Vec
as theT
doesn't work; it always returns an empty slice.The text was updated successfully, but these errors were encountered: