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
IOException
InterruptedException
UnsupportedBoardType
public static String getDefaultPort(SystemInfo.BoardType board) throws UnsupportedBoardType
board
- hardware board typeUnsupportedBoardType
Copyright © 2012–2021 Pi4J. All rights reserved.