diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-02-17 08:39:29 +1100 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-02-17 08:39:29 +1100 |
commit | 2ce5a32a8cbcbb7d2e22f2912fa47f03b2d6b2fd (patch) | |
tree | a9deaccda8620b8a9fca9495b15b908f78911c94 /src/org | |
parent | 513de76c622f743b7ed257d1a956666d575dd6f3 (diff) | |
download | traccar-server-2ce5a32a8cbcbb7d2e22f2912fa47f03b2d6b2fd.tar.gz traccar-server-2ce5a32a8cbcbb7d2e22f2912fa47f03b2d6b2fd.tar.bz2 traccar-server-2ce5a32a8cbcbb7d2e22f2912fa47f03b2d6b2fd.zip |
Implement Astra protocol ack messages
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/traccar/protocol/AstraProtocolDecoder.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/AstraProtocolDecoder.java b/src/org/traccar/protocol/AstraProtocolDecoder.java index e57533eaf..03053ca2d 100644 --- a/src/org/traccar/protocol/AstraProtocolDecoder.java +++ b/src/org/traccar/protocol/AstraProtocolDecoder.java @@ -45,6 +45,10 @@ public class AstraProtocolDecoder extends BaseProtocolDecoder { ChannelBuffer buf = (ChannelBuffer) msg; + if (channel != null) { + channel.write(ChannelBuffers.wrappedBuffer(new byte[] {0x06}), remoteAddress); + } + buf.readUnsignedByte(); // protocol buf.readUnsignedShort(); // length |