From 4c0ad98ab52f5f790112eb763be8c97e62a5f022 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 22 Mar 2021 23:27:01 -0700 Subject: Response for all messages --- src/main/java/org/traccar/protocol/RstProtocolDecoder.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java/org/traccar/protocol/RstProtocolDecoder.java') diff --git a/src/main/java/org/traccar/protocol/RstProtocolDecoder.java b/src/main/java/org/traccar/protocol/RstProtocolDecoder.java index 05601ed51..fbf0b4f72 100644 --- a/src/main/java/org/traccar/protocol/RstProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/RstProtocolDecoder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 - 2020 Anton Tananaev (anton@traccar.org) + * Copyright 2019 - 2021 Anton Tananaev (anton@traccar.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -87,8 +87,8 @@ public class RstProtocolDecoder extends BaseProtocolDecoder { int index = parser.nextInt(); parser.nextInt(); // type - if (channel != null && archive.equals("A")) { - String response = "RST;A;" + model + ";" + firmware + ";" + serial + ";" + index + ";6;FIM;"; + if (channel != null) { + String response = "RST;" + archive + ";" + model + ";" + firmware + ";" + serial + ";" + index + ";6;FIM;"; channel.writeAndFlush(new NetworkMessage(response, remoteAddress)); } -- cgit v1.2.3