How to fetch Engine=resume/Stop status into the Database Table

Aakansha3 years ago

I need to save the Engine status update like when I hit the post command from the postman of sending Engine status to----> like this

{
    "deviceId":1,
    "type":"engineStop"
}
{
    "deviceId":1,
    "type":"engineResume"
}

then the device gets stopped in the traccar app, I get notifications too about the event but
I want to store the "engineStop" and "engineResume" status of the device in the table so that I can get the details of the deviceId when the engine is stopping and when not !!

I need to get the real time record of device Engine starting and resuming .