Class DeviceEvent

    • Constructor Detail

      • DeviceEvent

        public DeviceEvent​(int gpio,
                           long epochTime,
                           long nanoTime)
        Constructor for a device event.
        Parameters:
        gpio - GPIO number
        epochTime - Unix epoch time: milliseconds elapsed since January 1, 1970 (midnight UTC/GMT), not counting leap seconds
        nanoTime - The Java Virtual Machine's high-resolution time source, in nanoseconds (note this is unrelated to epochTime and uses CLOCK_MONOTONIC in the C clock_gettime() function)
    • Method Detail

      • getGpio

        public int getGpio()