RadioTransportCallback

Narrow callback interface for transport → service communication.

Transport implementations (RadioTransport) need only these three methods to report lifecycle events and deliver data. This replaces the previous pattern of passing the full RadioInterfaceService to transport constructors, decoupling transports from the service layer.

Inheritors

Functions

Link copied to clipboard
abstract fun handleFromRadio(bytes: ByteArray)

Called when the transport has received raw data from the radio.

Link copied to clipboard
abstract fun onConnect()

Called when the transport has successfully established a connection.

Link copied to clipboard
abstract fun onDisconnect(isPermanent: Boolean, errorMessage: String? = null)

Called when the transport has disconnected.