You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 is Deserialize, 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] or heapless::Vec as the T doesn't work; it always returns an empty slice.
The text was updated successfully, but these errors were encountered:
@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: