aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-02-17 08:39:29 +1100
committerAnton Tananaev <anton.tananaev@gmail.com>2016-02-17 08:39:29 +1100
commit2ce5a32a8cbcbb7d2e22f2912fa47f03b2d6b2fd (patch)
treea9deaccda8620b8a9fca9495b15b908f78911c94 /src/org/traccar/protocol
parent513de76c622f743b7ed257d1a956666d575dd6f3 (diff)
downloadtrackermap-server-2ce5a32a8cbcbb7d2e22f2912fa47f03b2d6b2fd.tar.gz
trackermap-server-2ce5a32a8cbcbb7d2e22f2912fa47f03b2d6b2fd.tar.bz2
trackermap-server-2ce5a32a8cbcbb7d2e22f2912fa47f03b2d6b2fd.zip
Implement Astra protocol ack messages
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/AstraProtocolDecoder.java4
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