From 61b9b7f4bfa23abc477dbd954851fbb479e6513a Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 29 Oct 2019 22:57:41 -0700 Subject: Fix ack response --- src/main/java/org/traccar/protocol/RstProtocolDecoder.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java/org/traccar/protocol') 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)); } -- cgit v1.2.3