summaryrefslogtreecommitdiffstats
path: root/low-can-binding/utils/openxc-utils.hpp
diff options
context:
space:
mode:
authorArthur Guyader <arthur.guyader@iot.bzh>2019-12-13 14:44:42 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2020-01-09 16:25:36 +0100
commit74acfee2361a04f5ea389b31c4defecc30d8fc6b (patch)
tree1b4a8939aae56227043d929d0fffababb71fac01 /low-can-binding/utils/openxc-utils.hpp
parent23e350e7c5f193edd5944239f5a2e12af401c228 (diff)
can_bus: Add unit in the json that low-can emits
This commit allow if the unit is defined to display it in the json emmits by low-can. Change-Id: Ia09d4d9614eba6de93292ffab351fa1f4e612b73 Signed-off-by: Arthur Guyader <arthur.guyader@iot.bzh> Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'low-can-binding/utils/openxc-utils.hpp')
-rw-r--r--low-can-binding/utils/openxc-utils.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/low-can-binding/utils/openxc-utils.hpp b/low-can-binding/utils/openxc-utils.hpp
index 61f365b0..675dc2f1 100644
--- a/low-can-binding/utils/openxc-utils.hpp
+++ b/low-can-binding/utils/openxc-utils.hpp
@@ -23,6 +23,7 @@
#include <sys/timeb.h>
#include "openxc.pb.h"
+#include "../can/signals.hpp"
#include "../diagnostic/active-diagnostic-request.hpp"
const openxc_VehicleMessage build_VehicleMessage(active_diagnostic_request_t* request, const DiagnosticResponse& response, float parsed_value);
@@ -48,4 +49,4 @@ void jsonify_DynamicField(const openxc_DynamicField& field, json_object* value);
bool jsonify_simple(const openxc_SimpleMessage& s_msg, json_object* json);
-bool jsonify_vehicle(const openxc_VehicleMessage& v_msg, json_object* json);
+bool jsonify_vehicle(const openxc_VehicleMessage& v_msg, std::shared_ptr<signal_t> sig, json_object* json);