SerialInterfaceSpec

class SerialInterfaceSpec @Inject constructor(factory: SerialInterfaceFactory, usbManager: Lazy<UsbManager>, usbRepository: UsbRepository) : InterfaceSpec<SerialInterface>

Serial/USB interface backend implementation.

Constructors

Link copied to clipboard
@Inject
constructor(factory: SerialInterfaceFactory, usbManager: Lazy<UsbManager>, usbRepository: UsbRepository)

Functions

Link copied to clipboard
open override fun addressValid(rest: String): Boolean

Return true if this address is still acceptable. For BLE that means, still bonded

Link copied to clipboard
open override fun createInterface(rest: String): SerialInterface