JvmSerialDevicePresence

JVM/Desktop implementation of SerialDevicePresence.

Desktop serial publishes no hot-plug device set, so deviceKeys stays empty. portExists takes the port a desktop selection stores and answers through serialPortExists.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val deviceKeys: StateFlow<Set<String>>

The set of currently-connected serial device keys (the rest part of an s$rest SERIAL address).

Functions

Link copied to clipboard
open override fun portExists(key: String): Boolean

Whether the port key names exists now, probed on demand by platforms that cannot publish deviceKeys; null where deviceKeys already answers that.