TransportPdu

data class TransportPdu(val isSegmented: Boolean, val akf: Boolean, val aid: Int, val seqZero: Int, val segO: Int, val segN: Int, val payload: ByteArray, val transportMic: ByteArray)

A Transport PDU before network-layer encryption.

Constructors

Link copied to clipboard
constructor(isSegmented: Boolean, akf: Boolean, aid: Int, seqZero: Int, segO: Int, segN: Int, payload: ByteArray, transportMic: ByteArray)

Properties

Link copied to clipboard
val aid: Int

Application Identifier -- 6-bit value derived from AppKey (via K4).

Link copied to clipboard

Application Key Flag -- true if encrypted with AppKey, false for DeviceKey.

Link copied to clipboard

Whether this segment is the final one.

Link copied to clipboard

Whether this is a segmented message.

Link copied to clipboard

Payload (encrypted upper transport PDU or segment thereof).

Link copied to clipboard
val segN: Int

Last segment number (total segments - 1).

Link copied to clipboard
val segO: Int

Segment offset (which segment this is, 0-based).

Link copied to clipboard

Sequence number (24-bit, lower portion).

Link copied to clipboard

Total number of segments.

Link copied to clipboard

Transport MIC (32-bit for unsegmented, 64-bit for segmented).