public final class PortChooser extends Object
Modifier and Type | Field and Description |
---|---|
static String |
OVERRIDE_TEST_PORT_PROPERTY
System property to override the IT serial port with a specific port identifier.
|
Modifier and Type | Method and Description |
---|---|
static String |
choosePort(ControlLab controlLab)
Picks the first available serial port based on what the serial library finds.
|
static String |
choosePort(ControlLab controlLab,
int position)
Picks the Nth available serial port based on what the serial library finds.
|
public static final String OVERRIDE_TEST_PORT_PROPERTY
public static String choosePort(ControlLab controlLab)
controlLab
- control lab instance for querying the serial librarypublic static String choosePort(ControlLab controlLab, int position)
controlLab
- control lab instance for querying the serial libraryposition
- one-based position field for choosing the portCopyright © 2016–2023. All rights reserved.