My device do not send ignition events continuously as the current IgnitionEventHandler considers. My device sends two discrete events, "acc on" and "acc off" when this events are detected, in the mean time, it sends normal position messages without info about the ignition status.
So I would like to replace this Handler with a new one to change the logic.
I was no able to find a documented way to do this, except modifying the IgnitionEventHandler y recompile all.
Thanks.
You should use "processing.copyAttributes" parameter in the config:
https://www.traccar.org/configuration-file/
It will copy selected attributes (e.g. ignition) from previous message, if they are not present in the current one.
My device do not send ignition events continuously as the current IgnitionEventHandler considers. My device sends two discrete events, "acc on" and "acc off" when this events are detected, in the mean time, it sends normal position messages without info about the ignition status.
So I would like to replace this Handler with a new one to change the logic.
I was no able to find a documented way to do this, except modifying the IgnitionEventHandler y recompile all.
Thanks.