StreamTransport
abstract class StreamTransport(callback: RadioTransportCallback, scope: CoroutineScope) : RadioTransport(source)
An interface that assumes we are talking to a meshtastic device over some sort of stream connection (serial or TCP probably).
Delegates framing logic to StreamFrameCodec from core:network.
Inheritors
Functions
Link copied to clipboard
Flushes buffered bytes to the underlying stream. No-op by default.
Link copied to clipboard
Link copied to clipboard
Writes raw bytes to the underlying stream (serial port, TCP socket, etc.). Implementations may block until the driver accepts the bytes, so direct callers must already be running on an I/O dispatcher. Framed packet sends use queueFramedSend, whose writer controls dispatcher confinement. Subclasses that rely on queueFramedSend's default writer must therefore supply an I/O-confined scope.