From 0c8bf8867456c55231f2aabf36970504d4e8cab7 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 14 Dec 2017 07:23:08 +1300 Subject: Implement GK310 geofence support --- src/org/traccar/protocol/Gt06ProtocolDecoder.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/org') 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; -- cgit v1.2.3