TrafficEvent

data class TrafficEvent(val sequence: Long, val timestampMs: Long, val direction: TrafficDirection, val characteristicUuid: EucUuid, val bytes: ByteArray)(source)

One BLE notification chunk (RX) or write accepted by Android (TX), without reassembly. TX does not confirm delivery to, or execution by, the wheel.

sequence starts at 1 and increases across both directions for the lifetime of a BLEManager, including reconnects and periods without collectors. Gaps between collected events indicate missed traffic. timestampMs is capture time in Unix epoch milliseconds; use sequence for library observation order, since the wall clock can change. This is not an over-the-air trace.

bytes is a defensive snapshot shared with all traffic and raw-frame collectors. Treat it as read-only; copy it before modifying it.

Constructors

Link copied to clipboard
constructor(sequence: Long, timestampMs: Long, direction: TrafficDirection, characteristicUuid: EucUuid, bytes: ByteArray)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard