ISerialPortList

interface ISerialPortList

Interface from which any port-listing classes should inherit.

This interface is intended to be implemented by classes which enumerate serial ports on a given platform and provide a list of ports to the client.

Inheritors

Functions

Link copied to clipboard
abstract fun get(): List<ISerialPortWrapper>

Retrieves a list of serial ports on the target machine.

abstract fun get(productId: Int, vendorId: Int): List<ISerialPortWrapper>

Retrieves a list of serial ports on the target machine which match the provided vendor and product ID.

Link copied to clipboard
abstract fun getByProductId(productId: Int): List<ISerialPortWrapper>

Retrieves a list of serial ports on the target machine which match the provided product ID.

Link copied to clipboard
abstract fun getByVendor(vendorId: Int): List<ISerialPortWrapper>

Retrieves a list of serial ports on the target machine which match the provided vendor ID.