aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-01-15 16:37:47 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2017-01-15 16:37:47 +1300
commita0f6b38fadbb0a5181bc3324730b4b8e8afbff3e (patch)
tree082b196a8e22ac0a35566b903c778ec2a28436b2 /src/org/traccar
parente142f095923519d638e8f480cdd4eb2c12b23501 (diff)
downloadtrackermap-server-a0f6b38fadbb0a5181bc3324730b4b8e8afbff3e.tar.gz
trackermap-server-a0f6b38fadbb0a5181bc3324730b4b8e8afbff3e.tar.bz2
trackermap-server-a0f6b38fadbb0a5181bc3324730b4b8e8afbff3e.zip
Add alarm support for OsmAnd
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/OsmAndProtocolDecoder.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/OsmAndProtocolDecoder.java b/src/org/traccar/protocol/OsmAndProtocolDecoder.java
index 382865e8f..a1bfcc89a 100644
--- a/src/org/traccar/protocol/OsmAndProtocolDecoder.java
+++ b/src/org/traccar/protocol/OsmAndProtocolDecoder.java
@@ -128,6 +128,9 @@ public class OsmAndProtocolDecoder extends BaseProtocolDecoder {
case "batt":
position.set(Position.KEY_BATTERY, value);
break;
+ case "alarm":
+ position.set(Position.KEY_ALARM, value.equals("sos") ? Position.ALARM_SOS : Position.ALARM_GENERAL);
+ break;
default:
position.set(entry.getKey(), value);
break;