diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-03-25 20:23:55 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-03-25 20:23:55 -0700 |
commit | daacd9e40d6b6528391d796a5a365e661f3b581f (patch) | |
tree | 8362f76922af4e3efb4c6b18b3c22bf4169d251f | |
parent | 4a1a705bc4eb5830fbeca15e6e700ab3a4be82f3 (diff) | |
download | traccar-server-daacd9e40d6b6528391d796a5a365e661f3b581f.tar.gz traccar-server-daacd9e40d6b6528391d796a5a365e661f3b581f.tar.bz2 traccar-server-daacd9e40d6b6528391d796a5a365e661f3b581f.zip |
Add missing alarms
-rw-r--r-- | src/org/traccar/protocol/T800xProtocolDecoder.java | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/T800xProtocolDecoder.java b/src/org/traccar/protocol/T800xProtocolDecoder.java index dfd66693a..dfb286257 100644 --- a/src/org/traccar/protocol/T800xProtocolDecoder.java +++ b/src/org/traccar/protocol/T800xProtocolDecoder.java @@ -59,6 +59,10 @@ public class T800xProtocolDecoder extends BaseProtocolDecoder { private String decodeAlarm(short value) { switch (value) { + case 1: + return Position.ALARM_POWER_CUT; + case 2: + return Position.ALARM_LOW_BATTERY; case 3: return Position.ALARM_SOS; case 4: @@ -67,13 +71,20 @@ public class T800xProtocolDecoder extends BaseProtocolDecoder { return Position.ALARM_GEOFENCE_ENTER; case 6: return Position.ALARM_GEOFENCE_EXIT; + case 7: + return Position.ALARM_TOW; case 8: case 10: return Position.ALARM_VIBRATION; + case 21: + return Position.ALARM_JAMMING; + case 23: + return Position.ALARM_POWER_RESTORED; + case 24: + return Position.ALARM_LOW_POWER; default: - break; + return null; } - return null; } @Override |