Change-Id: Id01a15efe1b6aa063ac9bb2d3989ff195035eeb0
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
int subscription_id = can_message.get_sub_id();
openxc_VehicleMessage vehicle_message = manager.find_and_decode_adr(can_message);
+ if (can_message.get_timestamp())
+ {vehicle_message.timestamp = can_message.get_timestamp();}
if( (vehicle_message.has_simple_message && vehicle_message.simple_message.has_name) &&
s.find(subscription_id) != s.end() && afb_event_is_valid(s[subscription_id]->get_event()))
{
{
if(v_msg.has_timestamp)
{
- json_object_object_add(json, "timestamp", json_object_new_double(v_msg.timestamp));
+ json_object_object_add(json, "timestamp", json_object_new_int64(v_msg.timestamp));
return true;
}
return true;