public class SimpleCli extends Object implements DeviceEventHandler
Usage: SampleApp portName
Example 1: java -jar SampleApp.jar Example 2: java -jar SampleApp.jar /dev/ttyUSB0 Example 3: java -jar SampleApp.jar /dev/ttyUSB0 /path/to/config/file.xml
Constructor and Description |
---|
SimpleCli() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args) |
void |
onDeviceEvent(DeviceEvent event)
Invoked when the DeviceEvent occurs.
|
public static void main(String[] args)
public void onDeviceEvent(DeviceEvent event)
DeviceEventHandler
onDeviceEvent
in interface DeviceEventHandler
event
- The DeviceEvent that has occurred.Copyright © 2020. All rights reserved.