Is it possible to install JAVA NIO WatchService on files in the device tree /sys/class/gpio/gpioX to control the changes there?
It would be nice to detect changes in GPIO files (i.e. GPIO inputs) directly from Java, but I'm afraid this is not supported.
Confirmation that it is not supported (and possibly why) will be sufficient.
source share