TransportState

sealed interface TransportState(source)

State of the transport connection.

The engine observes RadioTransport.state to detect transport availability. Reaching Connected does not mean the SDK session is ready — ConnectionState.Connected is only reached after the handshake completes.

Since

0.1.0

Inheritors

Types

Link copied to clipboard
data object Bonding : TransportState

Transport link is up but the platform is negotiating encryption / pairing with the device. Emitted by transports that do encrypted I/O (notably org.meshtastic.sdk.transport.ble.BleTransport) when the OS-level pairing dialog may be visible to the user. While in this state, the transport's connect() is still suspended — the engine has not yet started the handshake clock, so callers can render a "Confirm pairing on your device" UI without racing the handshake timeout.

Link copied to clipboard

Transport is connected and frames can flow.

Link copied to clipboard

Connection attempt is in progress.

Link copied to clipboard

Transport is disconnected or never started.

Link copied to clipboard
data class Error(val cause: Throwable, val recoverable: Boolean) : TransportState

Transport encountered an error.