public class GPIOSample extends java.lang.Object
GPIOSample contains the
GPIO object that generates
the sample, its value, and the time when it was taken in milliseconds.
GPIO.registerListener(IGPIOListener) method to
subscribe your listener and receive GPIO samples.
|Modifier||Constructor and Description|
Creates a GPIO sample with the given GPIO, value and timestamp.
|Modifier and Type||Method and Description|
Gets the GPIO object where this sample was taken.
Gets the time when this sample was taken.
Gets the GPIO value of this sample.
gpio- The GPIO object where the sample was taken.
value- The value of the sample.
timestamp- The time in milliseconds when the GPIO was sampled.
timestamp < 0.
gpio == nullor if
value == null.
public GPIO getGPIO()
public GPIOValue getValue()
public long getTimestamp()