aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/RuptelaProtocolEncoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-03-21 19:30:57 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2017-03-21 19:30:57 +1300
commit787f10186dff867f67d5f3f486797d9fb7a70b38 (patch)
tree8b762a5878eee499937d6d8b7381bd209c345ae0 /src/org/traccar/protocol/RuptelaProtocolEncoder.java
parentb6bf899a4fc9a97a69f8424cad6990e4d533e57d (diff)
downloadtrackermap-server-787f10186dff867f67d5f3f486797d9fb7a70b38.tar.gz
trackermap-server-787f10186dff867f67d5f3f486797d9fb7a70b38.tar.bz2
trackermap-server-787f10186dff867f67d5f3f486797d9fb7a70b38.zip
Implement Ruptela responses
Diffstat (limited to 'src/org/traccar/protocol/RuptelaProtocolEncoder.java')
-rw-r--r--src/org/traccar/protocol/RuptelaProtocolEncoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/RuptelaProtocolEncoder.java b/src/org/traccar/protocol/RuptelaProtocolEncoder.java
index 420e2cb3d..564d80869 100644
--- a/src/org/traccar/protocol/RuptelaProtocolEncoder.java
+++ b/src/org/traccar/protocol/RuptelaProtocolEncoder.java
@@ -31,7 +31,7 @@ public class RuptelaProtocolEncoder extends BaseProtocolEncoder {
ChannelBuffer buf = ChannelBuffers.dynamicBuffer();
buf.writeShort(1 + content.readableBytes());
- buf.writeByte(type);
+ buf.writeByte(100 + type);
buf.writeBytes(content);
buf.writeShort(Checksum.crc16(Checksum.CRC16_KERMIT, buf.toByteBuffer(2, buf.writerIndex() - 2)));