diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-03-22 23:27:01 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-03-22 23:27:01 -0700 |
commit | 4c0ad98ab52f5f790112eb763be8c97e62a5f022 (patch) | |
tree | 3c2b4b3694ad792a2879a4b06509fb4d99bd3d29 /src/main/java/org | |
parent | af56a55f89bc3d8f1d6d653ab509f920f9ed6637 (diff) | |
download | trackermap-server-4c0ad98ab52f5f790112eb763be8c97e62a5f022.tar.gz trackermap-server-4c0ad98ab52f5f790112eb763be8c97e62a5f022.tar.bz2 trackermap-server-4c0ad98ab52f5f790112eb763be8c97e62a5f022.zip |
Response for all messages
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/traccar/protocol/RstProtocolDecoder.java | 6 |
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 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)); } |