diff options
author | mattti-post <60095729+mattti-post@users.noreply.github.com> | 2020-06-15 17:22:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-15 08:22:46 -0700 |
commit | 617462f3de96e9a15bb1c01af3e6b022e7eab684 (patch) | |
tree | 502bd635a7001b42dab3d2d99bbb3bae1ff03c7e /src/main/java/org/traccar/protocol/WatchProtocolDecoder.java | |
parent | 4c44e55db10fd7ad5c5d50b9cc6ff66e6fe02934 (diff) | |
download | trackermap-server-617462f3de96e9a15bb1c01af3e6b022e7eab684.tar.gz trackermap-server-617462f3de96e9a15bb1c01af3e6b022e7eab684.tar.bz2 trackermap-server-617462f3de96e9a15bb1c01af3e6b022e7eab684.zip |
Update WatchProtocolDecoder.java (#4544)
* Update WatchProtocolDecoder.java
Based on documentation for watch protocol
https://www.traccar.org/protocols/
比电协议V1.8(20160926).doc
* Update WatchProtocolDecoder.java
Diffstat (limited to 'src/main/java/org/traccar/protocol/WatchProtocolDecoder.java')
-rw-r--r-- | src/main/java/org/traccar/protocol/WatchProtocolDecoder.java | 4 |
1 files changed, 2 insertions, 2 deletions
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") |