SerialFace

Type Alias SerialFace 

Source
pub type SerialFace = StreamFace<ReadHalf<SerialStream>, WriteHalf<SerialStream>, CobsCodec>;
Expand description

NDN face over a serial port with COBS framing.

COBS (Consistent Overhead Byte Stuffing) provides reliable frame resynchronisation after line noise — a 0x00 byte never appears in the encoded payload, so re-sync is just a matter of waiting for the next 0x00.

Suitable for: UART sensor nodes, LoRa radio modems, RS-485 industrial buses.

Uses StreamFace with serial read/write halves and CobsCodec. LP-encoding is enabled for network transport.

Aliased Type§

pub struct SerialFace { /* private fields */ }