diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-12-14 07:23:08 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-12-14 07:23:08 +1300 |
commit | 0c8bf8867456c55231f2aabf36970504d4e8cab7 (patch) | |
tree | 23a0813b8e3f8a7eb19357cef18c3be77eeef0d8 /src/org/traccar/protocol | |
parent | 44ecf67fef0cce59430e6216fcd2dfa4d5c2bcbd (diff) | |
download | trackermap-server-0c8bf8867456c55231f2aabf36970504d4e8cab7.tar.gz trackermap-server-0c8bf8867456c55231f2aabf36970504d4e8cab7.tar.bz2 trackermap-server-0c8bf8867456c55231f2aabf36970504d4e8cab7.zip |
Implement GK310 geofence support
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r-- | src/org/traccar/protocol/Gt06ProtocolDecoder.java | 4 |
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; |