io87 Odometer Teltonika FMC150

Bert-85a year ago

I connect CAN reading to FMC150 teltonika device: io87 shows the correct milleage, but odomoter not. How can I set up de io87 AVL as the correct odometer in traccar. (settings in device are correct):

Operator 20610
Odometer 31531.69 km
io83 0
io87 6632000

Anton Tananaeva year ago

Use computed attributes to override odometer with the value of io87.

Bert-85a year ago

Thanks. Can you tell me the code how to write this?

Anton Tananaeva year ago
Bert-85a year ago

Could you advise on my code, test shows the correct amount but not replace the odometer with io87

odometer = io87 > 0 ? io87 : odometer;

Anton Tananaeva year ago

You have to remove the assignment.