aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-10-29 22:57:41 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2019-10-29 22:57:41 -0700
commit61b9b7f4bfa23abc477dbd954851fbb479e6513a (patch)
tree9cd6d6bd44becb763626b8a6c4bdc2ba8b37e503 /src
parent3e36fcdb303f4c7af2df8e859f8fc6b1c7ba3fd0 (diff)
downloadtrackermap-server-61b9b7f4bfa23abc477dbd954851fbb479e6513a.tar.gz
trackermap-server-61b9b7f4bfa23abc477dbd954851fbb479e6513a.tar.bz2
trackermap-server-61b9b7f4bfa23abc477dbd954851fbb479e6513a.zip
Fix ack response
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/traccar/protocol/RstProtocolDecoder.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/org/traccar/protocol/RstProtocolDecoder.java b/src/main/java/org/traccar/protocol/RstProtocolDecoder.java
index 071200d6d..092083f9d 100644
--- a/src/main/java/org/traccar/protocol/RstProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/RstProtocolDecoder.java
@@ -83,11 +83,11 @@ public class RstProtocolDecoder extends BaseProtocolDecoder {
String model = parser.next();
String firmware = parser.next();
String serial = parser.next();
- int index = parser.nextInt();
- int type = parser.nextInt();
+ parser.nextInt(); // index
+ parser.nextInt(); // type
if (channel != null && archive.equals("A")) {
- String response = "RST;A;" + model + ";" + firmware + ";" + serial + ";" + index + ";" + type + ";FIM;";
+ String response = "RST;A;" + model + ";" + firmware + ";" + serial + ";1;6;FIM;";
channel.writeAndFlush(new NetworkMessage(response, remoteAddress));
}