aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-12-14 07:23:08 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2017-12-14 07:23:08 +1300
commit0c8bf8867456c55231f2aabf36970504d4e8cab7 (patch)
tree23a0813b8e3f8a7eb19357cef18c3be77eeef0d8 /src/org
parent44ecf67fef0cce59430e6216fcd2dfa4d5c2bcbd (diff)
downloadtrackermap-server-0c8bf8867456c55231f2aabf36970504d4e8cab7.tar.gz
trackermap-server-0c8bf8867456c55231f2aabf36970504d4e8cab7.tar.bz2
trackermap-server-0c8bf8867456c55231f2aabf36970504d4e8cab7.zip
Implement GK310 geofence support
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/Gt06ProtocolDecoder.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/Gt06ProtocolDecoder.java b/src/org/traccar/protocol/Gt06ProtocolDecoder.java
index 2c1468250..0fdd5ba10 100644
--- a/src/org/traccar/protocol/Gt06ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Gt06ProtocolDecoder.java
@@ -630,6 +630,10 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder {
buf.readUnsignedShort();
}
+ if (type == MSG_GPS_LBS_STATUS_3) {
+ position.set(Position.KEY_GEOFENCE, buf.readUnsignedByte());
+ }
+
sendResponse(channel, false, type, null);
return position;