aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-12-01 23:26:35 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2020-12-01 23:26:35 -0800
commitc4b898225df0d41a705cf78cb310c691451bf131 (patch)
treee5ae35d97cf3e852f578210f7d9f39f2459b3ccc /src/main/java/org/traccar
parent753e2dd3271e30b92a86c4a580e87279b59d46f7 (diff)
downloadtrackermap-server-c4b898225df0d41a705cf78cb310c691451bf131.tar.gz
trackermap-server-c4b898225df0d41a705cf78cb310c691451bf131.tar.bz2
trackermap-server-c4b898225df0d41a705cf78cb310c691451bf131.zip
Add response prefix
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r--src/main/java/org/traccar/protocol/TaipProtocolDecoder.java2
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)) + "<";