diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-02-09 07:29:26 +1000 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-02-09 07:29:26 +1000 |
commit | 230107d2157de837a570783855a430f7e81b842f (patch) | |
tree | 8704d843ba81aad6e681d7efd3447f8cce8abe17 | |
parent | f325f30ab8d9097eec01a39f5e7ac02c11d608c3 (diff) | |
download | trackermap-server-230107d2157de837a570783855a430f7e81b842f.tar.gz trackermap-server-230107d2157de837a570783855a430f7e81b842f.tar.bz2 trackermap-server-230107d2157de837a570783855a430f7e81b842f.zip |
Send correct response for TRV protocol
-rw-r--r-- | src/org/traccar/protocol/TrvProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/TrvProtocolDecoder.java b/src/org/traccar/protocol/TrvProtocolDecoder.java index 62cdd230c..c81dd08b9 100644 --- a/src/org/traccar/protocol/TrvProtocolDecoder.java +++ b/src/org/traccar/protocol/TrvProtocolDecoder.java @@ -78,7 +78,7 @@ public class TrvProtocolDecoder extends BaseProtocolDecoder { String type = sentence.substring(3, 7); if (channel != null) { - channel.write((char) (type.charAt(0) + 1) + type.substring(1)); // response + channel.write("TRV" + (char) (type.charAt(0) + 1) + type.substring(1) + "#"); // response } if (type.equals("AP00")) { |