News for hackers. Stuff that matters.
Re:Consistent Overhead Byte Stuffing (1999) [pdf] by chrisdalke on Sunday April 04, 2021 @03:53PM (#26692339)
One nice use case of COBS is to clearly delimit packets being sent over a serial stream. Framing packets with zero bytes is particularly convenient for small projects because it’s easy to implement and debug.

I’ve used COBS and MessagePack combined for some embedded sensor projects. My implementation for Arduino (also includes some other functionality on top to encode data with MessagePack): https://github.com/telemetryjet/telemetryjet-arduino-sdk

There are no comments on this comment yet.