public class SerialDataEvent extends EventObject
This class provides the serial data event object.
Before using the Pi4J library, you need to ensure that the Java VM in configured with access to the following system libraries:
This library depends on the wiringPi native system library. (developed by Gordon Henderson @ http://wiringpi.com/)
Serial
,
SerialDataListener
,
SerialFactory
,
http://www.pi4j.com/,
Serialized Formsource
Constructor and Description |
---|
SerialDataEvent(Object obj,
String data)
Default event constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getData()
Get the data string received.
|
getSource, toString
public SerialDataEvent(Object obj, String data)
obj
- The com.pi4j.io.serial.Serial class instance that initiates this event.data
- The data received.Copyright © 2012–2019 Pi4J. All rights reserved.