KableMeshtasticRadioProfile

MeshtasticRadioProfile implementation using Kable BLE characteristics.

Uses the standard Meshtastic BLE protocol: FROMNUM notifications trigger polling reads on the FROMRADIO characteristic. The firmware gates FROMNUM notifications behind STATE_SEND_PACKETS, so during the config handshake we seed the drain trigger to poll proactively.

Constructors

Link copied to clipboard
constructor(service: BleService)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val fromRadio: Flow<ByteArray>

The flow of incoming packets from the radio.

Link copied to clipboard
open override val logRadio: Flow<ByteArray>

The flow of incoming log packets from the radio.

Functions

Link copied to clipboard
open suspend override fun awaitSubscriptionReady()

Suspends until GATT notifications are enabled (CCCD written) for the primary observation characteristic.

Link copied to clipboard
open override fun requestDrain()

Requests a drain of the FROMRADIO characteristic without writing to TORADIO.

Link copied to clipboard
open suspend override fun sendToRadio(packet: ByteArray)

Sends a packet to the radio.