aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-03-25 20:23:55 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2019-03-25 20:23:55 -0700
commitdaacd9e40d6b6528391d796a5a365e661f3b581f (patch)
tree8362f76922af4e3efb4c6b18b3c22bf4169d251f /src
parent4a1a705bc4eb5830fbeca15e6e700ab3a4be82f3 (diff)
downloadtrackermap-server-daacd9e40d6b6528391d796a5a365e661f3b581f.tar.gz
trackermap-server-daacd9e40d6b6528391d796a5a365e661f3b581f.tar.bz2
trackermap-server-daacd9e40d6b6528391d796a5a365e661f3b581f.zip
Add missing alarms
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/protocol/T800xProtocolDecoder.java15
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