Skip to content

MeshPacketHeader

Defined in: src/protocol/meshPacket.ts:43

hashCount: number;

Defined in: src/protocol/meshPacket.ts:50

Number of hops in the path. May be 0 (originator emitted with empty path).


hashSize: number;

Defined in: src/protocol/meshPacket.ts:48

Bytes per hop in the path (1, 2, or 3). 4 is reserved by firmware.


pathHex: string;

Defined in: src/protocol/meshPacket.ts:52

Hex path bytes (hashCount × hashSize). Empty string when hashCount=0.


payload: Buffer;

Defined in: src/protocol/meshPacket.ts:56

Decrypted-or-not body. For GRP_TXT, format is: [channel_hash 1B][MAC 2B][encrypted: ts u32 LE + “name: text”]


payloadType: number;

Defined in: src/protocol/meshPacket.ts:45


payloadVer: number;

Defined in: src/protocol/meshPacket.ts:46


routeType: number;

Defined in: src/protocol/meshPacket.ts:44


optional transportCodesHex?: string;

Defined in: src/protocol/meshPacket.ts:53