From 2ce5a32a8cbcbb7d2e22f2912fa47f03b2d6b2fd Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 17 Feb 2016 08:39:29 +1100 Subject: Implement Astra protocol ack messages --- src/org/traccar/protocol/AstraProtocolDecoder.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/org/traccar/protocol') 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 -- cgit v1.2.3