Companion

Functions

Link copied to clipboard
fun create(portName: String, baudRate: Int = DEFAULT_BAUD_RATE, callback: RadioTransportCallback, scope: CoroutineScope, dispatchers: CoroutineDispatchers): SerialTransport

Creates a side-effect-free SerialTransport. The owning transport service invokes SerialTransport.start after it has published session ownership, so even immediate serial callbacks carry the correct generation.

Link copied to clipboard

Returns names of all available serial ports.