| commit | 87bc67f7f526344a132aaacdaad3a49b43dda29d | [log] [tgz] |
|---|---|---|
| author | Jeff Lin <JeffLin2@quantatw.com> | Fri Dec 04 20:58:01 2020 +0800 |
| committer | Ed Tanous <ed@tanous.net> | Thu Feb 18 17:25:03 2021 +0000 |
| tree | ff6dbc0cbf012f436ca566bd8edb2471bd7b9d43 | |
| parent | a62c069fdb3281cbcd9bd06b3e7965ddafb82e70 [diff] |
HwmonTempSensor: Add PollRate attribute
Tested:
1. Add the following configuration for test case:
{
"Address": "0x5c",
"Bus": "47",
"Name": "inlet",
"PollRate": 100.0,
"Thresholds": [
...
],
"Type": "MAX31725"
},
- update sensor once every 100 seconds and verify pass.
2. Add "PollRate" in configuration for positive and negative value and
verify pass.
Signed-off-by: Jeff Lin <JeffLin2@quantatw.com>
Change-Id: Ieeee2dd7ab6b3b2d237496b356e29b856078eb06
dbus-sensors is a collection of sensor applications that provide the xyz.openbmc_project.Sensor collection of interfaces. They read sensor values from hwmon, d-bus, or direct driver access to provide readings. Some advance non-sensor features such as fan presence, pwm control, and automatic cpu detection (x86) are also supported.
runtime re-configurable from d-bus (entity-manager or the like)
isolated: each sensor type is isolated into its own daemon, so a bug in one sensor is unlikely to affect another, and single sensor modifications are possible
async single-threaded: uses sdbusplus/asio bindings
multiple data inputs: hwmon, d-bus, direct driver access