Interface SerialPortManager


@NonNullByDefault public interface SerialPortManager
Interface for a serial port manager.
Author:
Markus Rathgeb - Initial contribution
  • Method Details

    • getIdentifier

      default @Nullable SerialPortIdentifier getIdentifier(String name)
      Gets a serial port identifier for a given name.
      Parameters:
      name - the name
      Returns:
      a serial port identifier or null
    • getIdentifiers

      Stream<SerialPortIdentifier> getIdentifiers()
      Gets the discovered serial port identifiers. SerialPortProviders may not be able to discover any or all identifiers. When the port name is known, the preferred way to get an identifier is by using getIdentifier(String).
      Returns:
      stream of discovered serial port identifiers