From d3094ea6e035c2bae2825cf9e031e093ee403264 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Mon, 10 Oct 2016 09:00:59 +0500 Subject: Add SOS handle --- src/org/traccar/protocol/Gl200ProtocolDecoder.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/org/traccar/protocol') diff --git a/src/org/traccar/protocol/Gl200ProtocolDecoder.java b/src/org/traccar/protocol/Gl200ProtocolDecoder.java index 973907235..a0efc47fa 100644 --- a/src/org/traccar/protocol/Gl200ProtocolDecoder.java +++ b/src/org/traccar/protocol/Gl200ProtocolDecoder.java @@ -603,6 +603,8 @@ public class Gl200ProtocolDecoder extends BaseProtocolDecoder { int reportType = parser.nextInt(); if (type.equals("NMR")) { position.set(Position.KEY_MOTION, reportType); + } else if (type.equals("SOS")) { + position.set(Position.KEY_ALARM, Position.ALARM_SOS); } decodeLocation(position, parser); -- cgit v1.2.3