diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-06-07 16:48:41 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-06-07 16:48:41 +1200 |
commit | 7e324a9dfb2bcde08d1524a9f3dc5114c0d49bdc (patch) | |
tree | 0e5cba2fe3cc600478fb5f536e9abf485ef976d7 /src/org/traccar/protocol/Gt06ProtocolDecoder.java | |
parent | a9be10be1cf3709a6f6eb5d612c2f5485f12749e (diff) | |
download | trackermap-server-7e324a9dfb2bcde08d1524a9f3dc5114c0d49bdc.tar.gz trackermap-server-7e324a9dfb2bcde08d1524a9f3dc5114c0d49bdc.tar.bz2 trackermap-server-7e324a9dfb2bcde08d1524a9f3dc5114c0d49bdc.zip |
Migrate H, I, J, K protocols
Diffstat (limited to 'src/org/traccar/protocol/Gt06ProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/Gt06ProtocolDecoder.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/Gt06ProtocolDecoder.java b/src/org/traccar/protocol/Gt06ProtocolDecoder.java index 44dbf9d8b..f54e3bf6d 100644 --- a/src/org/traccar/protocol/Gt06ProtocolDecoder.java +++ b/src/org/traccar/protocol/Gt06ProtocolDecoder.java @@ -22,6 +22,7 @@ import io.netty.channel.Channel; import org.traccar.BaseProtocolDecoder; import org.traccar.Context; import org.traccar.DeviceSession; +import org.traccar.NetworkMessage; import org.traccar.helper.BcdUtil; import org.traccar.helper.BitUtil; import org.traccar.helper.Checksum; @@ -182,7 +183,7 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder { response.writeShort(Checksum.crc16(Checksum.CRC16_X25, response.nioBuffer(2, response.writerIndex() - 2))); response.writeByte('\r'); response.writeByte('\n'); // ending - channel.write(response); + channel.write(new NetworkMessage(response, channel.remoteAddress())); } } |