aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-03-23 20:33:56 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-03-23 20:33:56 -0700
commit6c63444026b83f28b927a21c8f9509a040a44479 (patch)
tree8f985a5bdb4dd36f3fa1531bc401daa316290933 /src/main/java/org
parent4c0ad98ab52f5f790112eb763be8c97e62a5f022 (diff)
downloadtrackermap-server-6c63444026b83f28b927a21c8f9509a040a44479.tar.gz
trackermap-server-6c63444026b83f28b927a21c8f9509a040a44479.tar.bz2
trackermap-server-6c63444026b83f28b927a21c8f9509a040a44479.zip
Fix response format
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/traccar/protocol/RstProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/RstProtocolDecoder.java b/src/main/java/org/traccar/protocol/RstProtocolDecoder.java
index fbf0b4f72..b45fdbb5a 100644
--- a/src/main/java/org/traccar/protocol/RstProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/RstProtocolDecoder.java
@@ -80,7 +80,7 @@ public class RstProtocolDecoder extends BaseProtocolDecoder {
return null;
}
- String archive = parser.next();
+ parser.next(); // archive
String model = parser.next();
String firmware = parser.next();
String serial = parser.next();
@@ -88,7 +88,7 @@ public class RstProtocolDecoder extends BaseProtocolDecoder {
parser.nextInt(); // type
if (channel != null) {
- String response = "RST;" + archive + ";" + model + ";" + firmware + ";" + serial + ";" + index + ";6;FIM;";
+ String response = "RST;A;" + model + ";" + firmware + ";" + serial + ";" + index + ";6;FIM;";
channel.writeAndFlush(new NetworkMessage(response, remoteAddress));
}