pub fn decode(
frame: &[u8],
chip: ChipVariant,
) -> Result<DecodedCsi, DecodeError>Expand description
Decode one COBS-framed postcard CSI frame into a DecodedCsi.
frame is the WebSocket payload (the COBS body without the trailing \0
terminator the server strips). take_from_bytes_cobs decodes in place and
tolerates trailing pad bytes after the encoded struct. The input is copied
because COBS decoding mutates the buffer.