diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-10-08 22:52:05 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-10-08 22:52:05 -0700 |
commit | 2bae9c0587249e5281ea090ec8f3a3f22ed7ed0e (patch) | |
tree | febfb374cae1ce297291b8fd33fa8fb85157c846 /src/main/java/org | |
parent | 6802e2657378e8e3eec7de742d5690f3978cfa2d (diff) | |
download | trackermap-server-2bae9c0587249e5281ea090ec8f3a3f22ed7ed0e.tar.gz trackermap-server-2bae9c0587249e5281ea090ec8f3a3f22ed7ed0e.tar.bz2 trackermap-server-2bae9c0587249e5281ea090ec8f3a3f22ed7ed0e.zip |
Add modular response
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java b/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java index b313802b3..47c422907 100644 --- a/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java @@ -1143,7 +1143,7 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder { sendResponse(channel, true, type, buf.getShort(buf.writerIndex() - 6), null); - return decodeExtendedModular(buf, deviceSession); + return decodeExtendedModular(channel, buf, deviceSession); } else { @@ -1154,7 +1154,7 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder { return null; } - private Object decodeExtendedModular(ByteBuf buf, DeviceSession deviceSession) { + private Object decodeExtendedModular(Channel channel, ByteBuf buf, DeviceSession deviceSession) { Position position = new Position(getProtocolName()); position.setDeviceId(deviceSession.getDeviceId()); @@ -1255,6 +1255,8 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder { } } + sendResponse(channel, true, MSG_GPS_MODULAR, buf.readUnsignedShort(), null); + return position; } |