aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-03-12 23:16:34 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2019-03-12 23:16:34 -0700
commit477af677bc869f04a4cd8d734611218d20a40e21 (patch)
treea2508762fbcde713d8276b56be1fc958585f632a /src
parentc7821d072e37f5e2787abf205517793f7daa54d3 (diff)
downloadtraccar-server-477af677bc869f04a4cd8d734611218d20a40e21.tar.gz
traccar-server-477af677bc869f04a4cd8d734611218d20a40e21.tar.bz2
traccar-server-477af677bc869f04a4cd8d734611218d20a40e21.zip
Implement L100 acknowledgement
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/protocol/L100ProtocolDecoder.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/L100ProtocolDecoder.java b/src/org/traccar/protocol/L100ProtocolDecoder.java
index 4d6b8f34b..9868de435 100644
--- a/src/org/traccar/protocol/L100ProtocolDecoder.java
+++ b/src/org/traccar/protocol/L100ProtocolDecoder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2016 - 2018 Anton Tananaev (anton@traccar.org)
+ * Copyright 2016 - 2019 Anton Tananaev (anton@traccar.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -189,6 +189,10 @@ public class L100ProtocolDecoder extends BaseProtocolDecoder {
parser.nextInt(), parser.nextInt(), parser.nextHexInt(), parser.nextHexInt(), rssi)));
}
+ if (channel != null) {
+ channel.writeAndFlush(new NetworkMessage(String.valueOf((char) 0x01), remoteAddress));
+ }
+
return position;
}