diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-12-01 23:26:35 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-12-01 23:26:35 -0800 |
commit | c4b898225df0d41a705cf78cb310c691451bf131 (patch) | |
tree | e5ae35d97cf3e852f578210f7d9f39f2459b3ccc /src/main | |
parent | 753e2dd3271e30b92a86c4a580e87279b59d46f7 (diff) | |
download | trackermap-server-c4b898225df0d41a705cf78cb310c691451bf131.tar.gz trackermap-server-c4b898225df0d41a705cf78cb310c691451bf131.tar.bz2 trackermap-server-c4b898225df0d41a705cf78cb310c691451bf131.zip |
Add response prefix
Diffstat (limited to 'src/main')
-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 f543ccdb3..ed6d2b899 100644 --- a/src/main/java/org/traccar/protocol/TaipProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/TaipProtocolDecoder.java @@ -309,7 +309,7 @@ public class TaipProtocolDecoder extends BaseProtocolDecoder { if (messageIndex != null) { String response; if (messageIndex.startsWith("#IP")) { - response = ">SAK;ID=" + uniqueId + ";" + messageIndex + "<"; + response = "\u0020\u0020\u0006\u0000>SAK;ID=" + uniqueId + ";" + messageIndex + "<"; } else { response = ">ACK;ID=" + uniqueId + ";" + messageIndex + ";*"; response += String.format("%02X", Checksum.xor(response)) + "<"; |