diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-11-05 18:14:12 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-11-05 18:14:12 -0800 |
commit | 24569e916846905dad286a8f4e0fed0691ac4e42 (patch) | |
tree | ddf421f98b08d675d5391f776391371658ddd328 /src | |
parent | 52b0a04111a0139d7f426f1486108b7d625494fb (diff) | |
download | trackermap-server-24569e916846905dad286a8f4e0fed0691ac4e42.tar.gz trackermap-server-24569e916846905dad286a8f4e0fed0691ac4e42.tar.bz2 trackermap-server-24569e916846905dad286a8f4e0fed0691ac4e42.zip |
Include index in response
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/traccar/protocol/RstProtocolDecoder.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/RstProtocolDecoder.java b/src/main/java/org/traccar/protocol/RstProtocolDecoder.java index 60f5b8d04..f9c8d9df8 100644 --- a/src/main/java/org/traccar/protocol/RstProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/RstProtocolDecoder.java @@ -84,11 +84,11 @@ public class RstProtocolDecoder extends BaseProtocolDecoder { String model = parser.next(); String firmware = parser.next(); String serial = parser.next(); - parser.nextInt(); // index + int index = parser.nextInt(); parser.nextInt(); // type if (channel != null && archive.equals("A")) { - String response = "RST;A;" + model + ";" + firmware + ";" + serial + ";1;6;FIM;"; + String response = "RST;A;" + model + ";" + firmware + ";" + serial + ";" + index + ";6;FIM;"; channel.writeAndFlush(new NetworkMessage(response, remoteAddress)); } |