Introduce interval configuration for sensor reads.

This introduces the ability to specify in the sensor label configuration
file, a specific sleep interval.  The interval is in this file to allow
straightforward interval control over the sensors listed in that file.
Sensors grouped in the same file are treated as a group and run within
the same instance.

Tested: I tested setting the interval in one of four running
configurations and the change was picked up in that configuration while
the others ran at the default interval.

Resolves openbmc/phosphor-hwmon#5

Change-Id: Ia9e474bc446090c8ac95dc2e6bf23a4fd6ccf7b7
Signed-off-by: Patrick Venture <venture@google.com>
2 files changed
tree: 382a4b2d3ddd492044696f86dc098c3cb6c864ad
  1. test/
  2. .gitignore
  3. argument.cpp
  4. argument.hpp
  5. bootstrap.sh
  6. configure.ac
  7. env.cpp
  8. env.hpp
  9. fan_speed.cpp
  10. fan_speed.hpp
  11. hwmon.hpp
  12. interface.hpp
  13. LICENSE
  14. mainloop.cpp
  15. mainloop.hpp
  16. Makefile.am
  17. readd.cpp
  18. README.md
  19. sensorset.cpp
  20. sensorset.hpp
  21. sysfs.cpp
  22. sysfs.hpp
  23. targets.hpp
  24. thresholds.hpp
  25. util.hpp
README.md

Exposes generic hwmon entries as DBus objects.

To Build

To build this package, do the following steps:

    1. ./bootstrap.sh
    2. ./configure ${CONFIGURE_FLAGS}
    3. make

To full clean the repository again run `./bootstrap.sh clean`.