Skip to content

OnAirPacket

Defined in: src/protocol/onAirPackets.ts:8

A structurally-decoded MeshCore on-air packet. header is null when the input bytes do not parse as a mesh packet (e.g. a 0x84 sentinel frame or a truncated buffer); in that case payload is the raw fallback variant.

header:
| MeshPacketHeader
| null;

Defined in: src/protocol/onAirPackets.ts:9


payload: OnAirPayload;

Defined in: src/protocol/onAirPackets.ts:12


payloadTypeName: string;

Defined in: src/protocol/onAirPackets.ts:11

Enum key for header.payloadType (e.g. ‘GRP_TXT’); ‘UNKNOWN’ if absent.