aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-12-17 10:05:56 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-12-17 10:05:56 +1300
commitee16595faa12bd7554a1835ae5ed36f0606dc0e4 (patch)
tree61e3d5707a7176c560433cb9ac7386c313f94f6b /src/org/traccar
parente61fb62eba34e337f748eb18ce93bb3d3035e275 (diff)
downloadtraccar-server-ee16595faa12bd7554a1835ae5ed36f0606dc0e4.tar.gz
traccar-server-ee16595faa12bd7554a1835ae5ed36f0606dc0e4.tar.bz2
traccar-server-ee16595faa12bd7554a1835ae5ed36f0606dc0e4.zip
Add content to Castel response (fix #1599)
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/CastelProtocolDecoder.java3
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);