diff options
author | Scott Murray <scott.murray@konsulko.com> | 2023-11-29 15:40:23 -0500 |
---|---|---|
committer | Scott Murray <scott.murray@konsulko.com> | 2023-11-29 15:43:58 -0500 |
commit | 1f55937667e35fb79dabee0e180787e34a59169a (patch) | |
tree | 707961d1643ed844b7f55db25a3a07b7865447ca /src/KuksaClient.cpp | |
parent | be3bc37fbdd48f70a2cee4fb0f61c8b688707b1f (diff) |
Handle more signalsricefish_18.0.3ricefish_18.0.2ricefish_18.0.1ricefish_18.0.0ricefish/18.0.3ricefish/18.0.2ricefish/18.0.1ricefish/18.0.0quillback_17.1.4quillback_17.1.3quillback_17.1.2quillback_17.1.1quillback_17.1.0quillback_17.0.2quillback_17.0.1quillback_17.0.0quillback/17.1.4quillback/17.1.3quillback/17.1.2quillback/17.1.1quillback/17.1.0quillback/17.0.2quillback/17.0.1quillback/17.0.018.0.318.0.218.0.118.0.017.1.417.1.317.1.217.1.117.1.017.0.217.0.117.0.0
Add minimal mock support for the VSS signals:
Vehicle.Cabin.HVAC.IsAirConditioningActive
Vehicle.Cabin.HVAC.IsFrontDefrosterActive
Vehicle.Cabin.HVAC.IsRearDefrosterActive
Vehicle.Cabin.HVAC.IsRecirculationActive
The implemented behavior is to simply push the actuator target value
out as the new value, so that VSS clients will see the operation as
having completed.
Bug-AGL: SPEC-5000
Change-Id: I9501d54dae13825c7eadcdc417d6355b64f9cd36
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Diffstat (limited to 'src/KuksaClient.cpp')
-rw-r--r-- | src/KuksaClient.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/KuksaClient.cpp b/src/KuksaClient.cpp index 844ce0e..e7e2e25 100644 --- a/src/KuksaClient.cpp +++ b/src/KuksaClient.cpp @@ -73,6 +73,13 @@ void KuksaClient::set(const std::string &path, const std::string &value, SetResp set(path, dp, cb, actuator); } +void KuksaClient::set(const std::string &path, const bool value, SetResponseCallback cb, const bool actuator) +{ + Datapoint dp; + dp.set_bool_(value); + set(path, dp, cb, actuator); +} + void KuksaClient::set(const std::string &path, const int8_t value, SetResponseCallback cb, const bool actuator) { Datapoint dp; |