Push out sysfs updates over MQTT
Closed this issue · 3 comments
mhemeryck commented
First attempt:
- poll changes with the sysfs interface
- push out any changes over MQTT
mhemeryck commented
Next steps:
- return values from functions: proper error handling
- test: test the function APIs?
- MQTT receiver: have 2 threads: one for receiving, another for sending
- map file event to a named topic, message?
- count the duration a file is in given state?
- cross-compile for arm
mhemeryck commented
Instead of having everything hard-linked together with synchronous calls, I'm going to have a look at how to use channels to pass events along.