From e4014fca76e418e5d7d5c8ce8720913f998cd9de Mon Sep 17 00:00:00 2001 From: Tom Joseph Date: Wed, 6 Sep 2017 23:57:36 +0530 Subject: sensor: Add function to map dbus info to reading field For sensor's with reading type eventData2, the eventdata2 field is mapped to the reading field in the get sensor reading command response. Change-Id: I9ad85ddb48d6c273a22e476e29ea9bbb34c13e24 Signed-off-by: Tom Joseph --- sensordatahandler.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'sensordatahandler.hpp') diff --git a/sensordatahandler.hpp b/sensordatahandler.hpp index 3a66f48..010772d 100644 --- a/sensordatahandler.hpp +++ b/sensordatahandler.hpp @@ -71,6 +71,16 @@ GetSensorResponse mapDbusToAssertion(const Info& sensorInfo, */ GetSensorResponse assertion(const Info& sensorInfo); +/** + * @brief Maps the Dbus info to the reading field in the Get sensor reading + * command response. + * + * @param[in] sensorInfo - Dbus info related to sensor. + * + * @return Response for get sensor reading command. + */ +GetSensorResponse eventdata2(const Info& sensorInfo); + } //namespace get namespace set -- cgit v1.2.1