Implement PDR.FindStateSensorPDR DBus API
This commit implements a DBus API defined at
https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-dbus-interfaces/+/32905
to find the stateSensorPDR based on the entity ID
and stateSetID
Tested: Tested ok in fp5280g2 system
busctl call xyz.openbmc_project.PLDM /xyz/openbmc_project/pldm xyz.openbmc_project.PLDM.PDR FindStateSensorPDR yqq 1 5 1
aay 1 27 4 0 0 0 1 4 0 0 17 0 0 0 1 0 5 0 0 0 0 0 0 0 1 1 0 1 33
Signed-off-by: Chicago Duan <duanzhijia01@inspur.com>
Change-Id: I2b4ea63df4890933d1c70ac48a6829e7c1204f69
diff --git a/dbus_impl_pdr.hpp b/dbus_impl_pdr.hpp
index 16f5564..5016bb3 100644
--- a/dbus_impl_pdr.hpp
+++ b/dbus_impl_pdr.hpp
@@ -57,11 +57,8 @@
* @param[in] stateSetId - value that identifies PLDM State set.
*/
std::vector<std::vector<uint8_t>>
- findStateSensorPDR(uint8_t /*tid*/, uint16_t /*entityID*/,
- uint16_t /*stateSetId*/) override
- {
- return {};
- }
+ findStateSensorPDR(uint8_t tid, uint16_t entityID,
+ uint16_t stateSetId) override;
private:
/** @brief pointer to BMC's primary PDR repo */