diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-01-15 16:37:47 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-01-15 16:37:47 +1300 |
commit | a0f6b38fadbb0a5181bc3324730b4b8e8afbff3e (patch) | |
tree | 082b196a8e22ac0a35566b903c778ec2a28436b2 /src/org/traccar | |
parent | e142f095923519d638e8f480cdd4eb2c12b23501 (diff) | |
download | traccar-server-a0f6b38fadbb0a5181bc3324730b4b8e8afbff3e.tar.gz traccar-server-a0f6b38fadbb0a5181bc3324730b4b8e8afbff3e.tar.bz2 traccar-server-a0f6b38fadbb0a5181bc3324730b4b8e8afbff3e.zip |
Add alarm support for OsmAnd
Diffstat (limited to 'src/org/traccar')
-rw-r--r-- | src/org/traccar/protocol/OsmAndProtocolDecoder.java | 3 |
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; |