public class SerialPort extends Object
| Constructor and Description |
|---|
SerialPort() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getDefaultPort()
Get the default serial port for the detected platform/model/board revision.
|
static String |
getDefaultPort(SystemInfo.BoardType board)
Get the default serial port for the specified platform/model/board revision.
|
public SerialPort()
public static String getDefaultPort() throws IOException, InterruptedException, UnsupportedBoardType
IOExceptionInterruptedExceptionUnsupportedBoardTypepublic static String getDefaultPort(SystemInfo.BoardType board) throws UnsupportedBoardType
board - hardware board typeUnsupportedBoardTypeCopyright © 2012–2021 Pi4J. All rights reserved.