Skip to content

decodeOnAirPacket

function decodeOnAirPacket(input): OnAirPacket;

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

Decode a full on-air mesh packet (header + path + payload) into a tagged union. Total — never throws; unparseable or unsupported input yields the raw fallback variant. Accepts a hex string or raw bytes.

ParameterType
inputstring | Uint8Array<ArrayBufferLike>

OnAirPacket