From 6c63444026b83f28b927a21c8f9509a040a44479 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 23 Mar 2021 20:33:56 -0700 Subject: Fix response format --- src/main/java/org/traccar/protocol/RstProtocolDecoder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/org/traccar') 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)); } -- cgit v1.2.3