Represents a CAN (Controller Area Network) message.

interface CanMessage {
    children?: { data: string; name: string }[];
    data: Buffer;
    database?: string;
    device?: string;
    dir: "IN" | "OUT";
    id: number;
    isSimulate?: boolean;
    msgType: CanMsgType;
    name?: string;
    ts?: number;
}

Properties

children?: { data: string; name: string }[]

The children signals of the CAN message. internal use

data: Buffer

The data payload of the CAN message.

database?: string

The database name of the CAN message.

device?: string

The device associated with the CAN message.

dir: "IN" | "OUT"

The direction of the CAN message, either 'IN' for incoming or 'OUT' for outgoing.

id: number

The identifier of the CAN message.

isSimulate?: boolean

Indicates whether the CAN message is simulated. This property is optional.

msgType: CanMsgType

The type of the CAN message.

name?: string

The name of the CAN message.

ts?: number

The timestamp of when the CAN message was sent/recv.