diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-04-16 21:02:14 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-04-16 21:02:14 -0700 |
commit | 5180e877de462a5950878d69d3ba33dc9ebf790b (patch) | |
tree | d89c561f26bbe44d25bf489930f42fd1e944c77c /src/main | |
parent | f7ca64ef3e5828a6ff6302721499da62381539ec (diff) | |
download | trackermap-server-5180e877de462a5950878d69d3ba33dc9ebf790b.tar.gz trackermap-server-5180e877de462a5950878d69d3ba33dc9ebf790b.tar.bz2 trackermap-server-5180e877de462a5950878d69d3ba33dc9ebf790b.zip |
Replicate exact server response
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/traccar/protocol/SanulProtocolDecoder.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/SanulProtocolDecoder.java b/src/main/java/org/traccar/protocol/SanulProtocolDecoder.java index bd29828b3..036d1ee51 100644 --- a/src/main/java/org/traccar/protocol/SanulProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/SanulProtocolDecoder.java @@ -41,7 +41,7 @@ public class SanulProtocolDecoder extends BaseProtocolDecoder { if (channel != null) { ByteBuf response = Unpooled.buffer(); response.writeByte(0xaa); // header - response.writeShortLE(0); // reserved + response.writeShortLE(0x85da); // reserved response.writeShortLE(15); // length response.writeByte(1); // edition response.writeShortLE(MSG_RESPONSE); @@ -49,7 +49,7 @@ public class SanulProtocolDecoder extends BaseProtocolDecoder { response.writeIntLE(0); // command id response.writeByte(0); // status response.writeByte(0); // result length - response.writeIntLE(0); // result data ? + response.writeIntLE(0x20000); // result data ? channel.writeAndFlush(new NetworkMessage(response, channel.remoteAddress())); } } |