update
This commit is contained in:
@ -53,10 +53,22 @@ async function commitMessage(now, logDevice) {
|
||||
logDevice.ignition = lastHeartbeatOrAlarm[0].ignition;
|
||||
logDevice.stts_gps = lastHeartbeatOrAlarm[0].stts_gps;
|
||||
logDevice.stts_gsm = lastHeartbeatOrAlarm[0].stts_gsm;
|
||||
logDevice.stts_oil_electricity = lastHeartbeatOrAlarm[0].stts_oil_electricity;
|
||||
logDevice.stts_alarm = lastHeartbeatOrAlarm[0].stts_alarm;
|
||||
logDevice.stts_charge = lastHeartbeatOrAlarm[0].stts_charge;
|
||||
logDevice.stts_acc = lastHeartbeatOrAlarm[0].stts_acc;
|
||||
logDevice.stts_volt = lastHeartbeatOrAlarm[0].stts_volt;
|
||||
logDevice.stts_switch = lastHeartbeatOrAlarm[0].stts_switch;
|
||||
} else {
|
||||
logDevice.ignition = lastHeartbeatOrAlarm[0].ignition;
|
||||
logDevice.stts_gps = lastHeartbeatOrAlarm[0].stts_gps;
|
||||
logDevice.stts_gsm = lastHeartbeatOrAlarm[0].stts_gsm;
|
||||
logDevice.ignition = null;
|
||||
logDevice.stts_gps = null;
|
||||
logDevice.stts_gsm = null;
|
||||
logDevice.stts_oil_electricity = null;
|
||||
logDevice.stts_alarm = null;
|
||||
logDevice.stts_charge = null;
|
||||
logDevice.stts_acc = null;
|
||||
logDevice.stts_volt = null;
|
||||
logDevice.stts_switch = null;
|
||||
}
|
||||
// set engine stts moving,idling,stopped
|
||||
if (logDevice.ignition == GpsTracksModels.STTS_IGNITION_HIGH) {
|
||||
|
||||
Reference in New Issue
Block a user