| commit | 3dad826bd7f8c03cf7f742c7051c9fc537ca0c6d | [log] [tgz] |
|---|---|---|
| author | Thang Tran <thuutran@amperecomputing.com> | Thu Aug 17 15:20:56 2023 +0700 |
| committer | Thang Tran <thuutran@amperecomputing.com> | Tue Nov 28 00:49:21 2023 +0000 |
| tree | 6c05a1e0d17af24dcff7272c2bd716647904633b | |
| parent | b1416efa8d6d1a14a51bd0590f5a5cb6399a10cf [diff] |
dbus-sdr: support Get Temperature Readings command
This commit support Get Temperature Readings command in the
dynamicsensor library.
The design follows teps:
- Get the list of sensors based on Entity Id
- Sort the list of sensors.
- Loop all of sensors in the list, if its Entity Instance is greater
than the Instance Start then read the temperature via object path.
Tested:
1. Request to read Temperature of sensors
"ipmitool dcmi get_temp_reading"
2. Display Entity Id, Entity Instance, Temperature of sensors
Change-Id: Iaa7d65a763dacb50c1488d2a161b180fed49899b
Signed-off-by: Thang Tran <thuutran@amperecomputing.com>
meson builddir ninja -C builddir
meson builddir -Dbuildtype=minsize -Db_lto=true -Dtests=disabled ninja -C builddir
If any of the dependencies are not found on the host system during configuration, meson automatically gets them via its wrap dependencies mentioned in ipmid/subprojects.
meson builddir -Dwrap_mode=nofallback ninja -C builddir
meson builddir -Dbuildtype=debug ninja -C builddir
meson builddir -Db_coverage=true -Dtests=enabled ninja -C builddir test ninja -C builddir coverage