Quantcast
Viewing all articles
Browse latest Browse all 13965

QFileSystemWatcher + /sys/class/gpio

Hello. I run my Qt (4.8.4) application on Linux 3.2.18. Platform is AT91SAM9G45. I want to watch for changes in the file /sys/class/gpio/gpioXXX/value, which displays a current state of signal on one of pin board. This file may contain two values: “0” or “1”, if i manual change pin value i can see this change with ‘cat /sys/class/gpio/gpioXXX/value’, but QFileSystemWatcher does not catch these changes. However, the files are changed manually or by other programs respond correctly. I try to use poll: watcher.setObjectName(QLatin1String(”_qt_autotest_force_engine_poller”)); No results. Any ideas? Thank.

Viewing all articles
Browse latest Browse all 13965

Trending Articles