SendState

sealed interface SendState(source)

Lifecycle state of a packet sent via RadioClient.send.

A MessageHandle has a state that transitions through these states based on device feedback. Expected radio failures (NAK, timeout) are not exceptions — they are represented here.

Since

0.1.0

Inheritors

Types

Link copied to clipboard
data object Acked : SendState

The device received an acknowledgment from the target (unicast only).

Link copied to clipboard
data object Delivered : SendState

A broadcast packet was rebroadcast by another node.

Link copied to clipboard
data class Failed(val reason: SendFailure) : SendState

Packet delivery failed.

Link copied to clipboard
data object Queued : SendState

The packet is queued by the SDK, awaiting transmission to the device.

Link copied to clipboard
data object Sent : SendState

The device has accepted the packet and started transmission.