SerialTransport

JVM-specific implementation of RadioTransport using jSerialComm. Uses StreamTransport for START1/START2 packet framing.

Use the open factory method instead of the constructor directly to ensure the serial port is opened and the read loop is started.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open suspend override fun close()
Link copied to clipboard
open override fun flushBytes()

Flushes buffered bytes to the underlying stream. No-op by default.

Link copied to clipboard
open override fun handleSendToRadio(p: ByteArray)
Link copied to clipboard
open override fun keepAlive()
Link copied to clipboard
open override fun sendBytes(p: ByteArray)

Writes raw bytes to the underlying stream (serial port, TCP socket, etc.).

Link copied to clipboard
open fun start()