Interface SerialPortManager
@NonNullByDefault
public interface SerialPortManager
Interface for a serial port manager.
- Author:
- Markus Rathgeb - Initial contribution
-
Method Summary
Modifier and TypeMethodDescriptiondefault @Nullable SerialPortIdentifiergetIdentifier(String name) Gets a serial port identifier for a given name.Gets the discovered serial port identifiers.
-
Method Details
-
getIdentifier
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 usinggetIdentifier(String).- Returns:
- stream of discovered serial port identifiers
-