public class SerialExample extends Object
| Constructor and Description |
|---|
SerialExample() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
This example program supports the following optional command arguments/options:
"--device (device-path)" [DEFAULT: /dev/ttyAMA0]
"--baud (baud-rate)" [DEFAULT: 38400]
"--data-bits (5|6|7|8)" [DEFAULT: 8]
"--parity (none|odd|even)" [DEFAULT: none]
"--stop-bits (1|2)" [DEFAULT: 1]
"--flow-control (none|hardware|software)" [DEFAULT: none]
|
public static void main(String[] args) throws InterruptedException, IOException, PlatformAlreadyAssignedException
args - InterruptedExceptionIOExceptionPlatformAlreadyAssignedExceptionCopyright © 2012–2018 Pi4J. All rights reserved.