From 617462f3de96e9a15bb1c01af3e6b022e7eab684 Mon Sep 17 00:00:00 2001 From: mattti-post <60095729+mattti-post@users.noreply.github.com> Date: Mon, 15 Jun 2020 17:22:46 +0200 Subject: Update WatchProtocolDecoder.java (#4544) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update WatchProtocolDecoder.java Based on documentation for watch protocol https://www.traccar.org/protocols/ 比电协议V1.8(20160926).doc * Update WatchProtocolDecoder.java --- src/main/java/org/traccar/protocol/WatchProtocolDecoder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/org/traccar/protocol') diff --git a/src/main/java/org/traccar/protocol/WatchProtocolDecoder.java b/src/main/java/org/traccar/protocol/WatchProtocolDecoder.java index 0647afdee..9b2bc33bf 100644 --- a/src/main/java/org/traccar/protocol/WatchProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/WatchProtocolDecoder.java @@ -262,9 +262,9 @@ public class WatchProtocolDecoder extends BaseProtocolDecoder { return position; - } else if (type.equals("TKQ")) { + } else if (type.equals("TKQ") || type.equals("TKQ2")) { - sendResponse(channel, id, index, "TKQ"); + sendResponse(channel, id, index, type); } else if (type.equalsIgnoreCase("PULSE") || type.equalsIgnoreCase("HEART") -- cgit v1.2.3