aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-11-20 09:46:39 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-11-20 09:46:39 +1300
commit4c9466f694e48b69a14e9039bd9b8d717c3a3dc3 (patch)
tree8c772192c6355add2d8e97dd119feb77874243a1 /src/org/traccar/protocol
parent69270993f48c3ecb5d7b00e386fd67722448e8b5 (diff)
downloadtraccar-server-4c9466f694e48b69a14e9039bd9b8d717c3a3dc3.tar.gz
traccar-server-4c9466f694e48b69a14e9039bd9b8d717c3a3dc3.tar.bz2
traccar-server-4c9466f694e48b69a14e9039bd9b8d717c3a3dc3.zip
Add support for TKQ messages
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/WatchProtocolDecoder.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/WatchProtocolDecoder.java b/src/org/traccar/protocol/WatchProtocolDecoder.java
index a24d0a56b..92b7638fb 100644
--- a/src/org/traccar/protocol/WatchProtocolDecoder.java
+++ b/src/org/traccar/protocol/WatchProtocolDecoder.java
@@ -64,8 +64,8 @@ public class WatchProtocolDecoder extends BaseProtocolDecoder {
private void sendResponse(Channel channel, String manufacturer, String id, String content) {
if (channel != null) {
- channel.write(
- String.format("[%s*%s*%04x*%s]", manufacturer, id, content.length(), content));
+ channel.write(String.format(
+ "[%s*%s*%04x*%s]", manufacturer, id, content.length(), content));
}
}
@@ -138,6 +138,10 @@ public class WatchProtocolDecoder extends BaseProtocolDecoder {
return position;
+ } else if (type.equals("TKQ")) {
+
+ sendResponse(channel, manufacturer, id, "TKQ");
+
}
return null;