public interface SerialDataEventListener extends EventListener
This interface implements the callback event handler for Serial Data events.
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/)
SerialFactory
,
Serial
,
SerialDataEvent
,
https://www.pi4j.com/Modifier and Type | Method and Description |
---|---|
void |
dataReceived(SerialDataEvent event)
This is the event callback method that will be invoked when new serial data is received.
|
void dataReceived(SerialDataEvent event)
event
- serial data eventSerialDataEvent
Copyright © 2012–2019 Pi4J. All rights reserved.