diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-11-25 21:01:42 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-11-25 21:01:42 -0800 |
commit | 2ed7fb6e8f04c8fcee0e600446deaeda6cd4a86f (patch) | |
tree | a032871201a7c7eca2371a06d05ee62a2a67b145 | |
parent | 91a83142c78e0c5927a4eb4a3604d8524e77baa3 (diff) | |
download | trackermap-server-2ed7fb6e8f04c8fcee0e600446deaeda6cd4a86f.tar.gz trackermap-server-2ed7fb6e8f04c8fcee0e600446deaeda6cd4a86f.tar.bz2 trackermap-server-2ed7fb6e8f04c8fcee0e600446deaeda6cd4a86f.zip |
Fix ack response
-rw-r--r-- | src/main/java/org/traccar/protocol/TaipProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/TaipProtocolDecoder.java b/src/main/java/org/traccar/protocol/TaipProtocolDecoder.java index 0878e65af..f543ccdb3 100644 --- a/src/main/java/org/traccar/protocol/TaipProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/TaipProtocolDecoder.java @@ -308,7 +308,7 @@ public class TaipProtocolDecoder extends BaseProtocolDecoder { if (channel != null) { if (messageIndex != null) { String response; - if (messageIndex.startsWith("#IP:")) { + if (messageIndex.startsWith("#IP")) { response = ">SAK;ID=" + uniqueId + ";" + messageIndex + "<"; } else { response = ">ACK;ID=" + uniqueId + ";" + messageIndex + ";*"; |