From a0f6b38fadbb0a5181bc3324730b4b8e8afbff3e Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 15 Jan 2017 16:37:47 +1300 Subject: Add alarm support for OsmAnd --- src/org/traccar/protocol/OsmAndProtocolDecoder.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/org/traccar') 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; -- cgit v1.2.3