diff options
author | Abyss777 <abyss@fox5.ru> | 2016-10-10 09:00:59 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-10-10 09:00:59 +0500 |
commit | d3094ea6e035c2bae2825cf9e031e093ee403264 (patch) | |
tree | ec4a0233b8909c6fcd19bd4a3dc0f8777ac8d138 /src | |
parent | 787848118108f458c9d209ad362ce8377d38f8dc (diff) | |
download | traccar-server-d3094ea6e035c2bae2825cf9e031e093ee403264.tar.gz traccar-server-d3094ea6e035c2bae2825cf9e031e093ee403264.tar.bz2 traccar-server-d3094ea6e035c2bae2825cf9e031e093ee403264.zip |
Add SOS handle
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/protocol/Gl200ProtocolDecoder.java | 2 |
1 files changed, 2 insertions, 0 deletions
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); |