aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-03-13 01:55:23 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2018-03-13 01:55:23 +1300
commitca72b34c7d7dcf2d6b20b87ce3f8cc26ac7911a1 (patch)
tree5577d94d8c3204b31d43a3dce51ce0d276f8e66f /src/org
parent612547f1b0cae5e0ba39359ed349799f2a87ca2f (diff)
downloadtrackermap-server-ca72b34c7d7dcf2d6b20b87ce3f8cc26ac7911a1.tar.gz
trackermap-server-ca72b34c7d7dcf2d6b20b87ce3f8cc26ac7911a1.tar.bz2
trackermap-server-ca72b34c7d7dcf2d6b20b87ce3f8cc26ac7911a1.zip
Fix CT-03 init response
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/WatchProtocolDecoder.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/WatchProtocolDecoder.java b/src/org/traccar/protocol/WatchProtocolDecoder.java
index 1dd07a3f7..495803ab6 100644
--- a/src/org/traccar/protocol/WatchProtocolDecoder.java
+++ b/src/org/traccar/protocol/WatchProtocolDecoder.java
@@ -171,7 +171,11 @@ public class WatchProtocolDecoder extends BaseProtocolDecoder {
buf.readerIndex(contentIndex + 1);
}
- if (type.equals("LK")) {
+ if (type.equals("INIT")) {
+
+ sendResponse(channel, manufacturer, id, index, "INIT,1");
+
+ } else if (type.equals("LK")) {
sendResponse(channel, manufacturer, id, index, "LK");