BleTransport
class BleTransport(peripheral: Peripheral, address: String, parentContext: CoroutineContext = EmptyCoroutineContext) : RadioTransport(source)
BLE transport for Meshtastic radios using JuulLabs Kable.
Implements GATT framing: subscribes to fromnum notifications, drains fromradio until empty on each notification, writes to toradio with WriteWithoutResponse.
Strips/prepends the 4-byte stream header so the engine stays transport-agnostic. Single-collection frames; shutdown is idempotent and cannot be undone.
Parameters
peripheral
Kable peripheral pointing at the target radio.
address
stable platform-specific address for storage identity keying.
Constructors
Link copied to clipboard
constructor(peripheral: Peripheral, address: String, parentContext: CoroutineContext = EmptyCoroutineContext)