A serial frame (raw byte stream) sent (OUT) or received (IN) on a serial device.

interface SerialMessage {
    data: Buffer;
    device: string;
    dir: "OUT" | "IN";
    name: string;
    ts: number;
    uuid?: string;
}

Properties

Properties

data: Buffer

Raw bytes

device: string

Device id this frame belongs to

dir: "OUT" | "IN"

Direction relative to the host: OUT = host -> device, IN = device -> host

name: string

Device name

ts: number

Timestamp relative to start, in microseconds

uuid?: string

uuid of the node that produced an OUT frame (used to suppress echo)