Skip to content

RawPacketInfo

Defined in: console-sdk/src/config/types.ts:53

One raw BLE packet as seen at the transport boundary, for dev diagnostics (SDK_PLAN.md rows 84–85). Delivered to the optional diagnostics.onRawPacket log sink and surfaced reactively via useDiagnostics(). A fire-and-forget outbound log tap — never a data source; deriving app state from it is unsupported.

at: number

Defined in: console-sdk/src/config/types.ts:55

Capture timestamp in epoch milliseconds (read from the runtime Clock).


base64: string

Defined in: console-sdk/src/config/types.ts:61

Raw packet bytes, base64-encoded.


deviceId: DeviceId

Defined in: console-sdk/src/config/types.ts:57

Device the packet travelled to or from.


direction: "rx" | "tx"

Defined in: console-sdk/src/config/types.ts:59

'rx' = received from the device, 'tx' = written to the device.


hex: string

Defined in: console-sdk/src/config/types.ts:63

Raw packet bytes as a hex string (debug-friendly rendering).


parsed: { command: string; ok: true; } | { ok: false; reason: string; }

Defined in: console-sdk/src/config/types.ts:65

Parse outcome: the semantic command name, or why decoding failed.