diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-12-17 10:05:56 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-12-17 10:05:56 +1300 |
commit | ee16595faa12bd7554a1835ae5ed36f0606dc0e4 (patch) | |
tree | 61e3d5707a7176c560433cb9ac7386c313f94f6b /src | |
parent | e61fb62eba34e337f748eb18ce93bb3d3035e275 (diff) | |
download | traccar-server-ee16595faa12bd7554a1835ae5ed36f0606dc0e4.tar.gz traccar-server-ee16595faa12bd7554a1835ae5ed36f0606dc0e4.tar.bz2 traccar-server-ee16595faa12bd7554a1835ae5ed36f0606dc0e4.zip |
Add content to Castel response (fix #1599)
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/protocol/CastelProtocolDecoder.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/CastelProtocolDecoder.java b/src/org/traccar/protocol/CastelProtocolDecoder.java index 4e5bef9f5..bf0d8ea46 100644 --- a/src/org/traccar/protocol/CastelProtocolDecoder.java +++ b/src/org/traccar/protocol/CastelProtocolDecoder.java @@ -99,6 +99,9 @@ public class CastelProtocolDecoder extends BaseProtocolDecoder { response.writeByte(version); response.writeBytes(id); response.writeShort(ChannelBuffers.swapShort(type)); + if (content != null) { + response.writeBytes(content); + } response.writeShort( Checksum.crc16(Checksum.CRC16_X25, response.toByteBuffer(0, response.writerIndex()))); response.writeByte(0x0D); response.writeByte(0x0A); |