diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-11-08 06:44:10 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-11-08 06:44:10 +1300 |
commit | 92f00d0da0dafd08ccf2a623406963e61fcde276 (patch) | |
tree | 33a88894aaebb26e80de5e497e28223be6d66a60 /src/org/traccar | |
parent | 5bd69427184618591da88161aa51ed00baa85a89 (diff) | |
download | traccar-server-92f00d0da0dafd08ccf2a623406963e61fcde276.tar.gz traccar-server-92f00d0da0dafd08ccf2a623406963e61fcde276.tar.bz2 traccar-server-92f00d0da0dafd08ccf2a623406963e61fcde276.zip |
Fix D-WAY heartbeat response
Diffstat (limited to 'src/org/traccar')
-rw-r--r-- | src/org/traccar/protocol/DwayProtocolDecoder.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/DwayProtocolDecoder.java b/src/org/traccar/protocol/DwayProtocolDecoder.java index 767b35c72..121681588 100644 --- a/src/org/traccar/protocol/DwayProtocolDecoder.java +++ b/src/org/traccar/protocol/DwayProtocolDecoder.java @@ -59,9 +59,9 @@ public class DwayProtocolDecoder extends BaseProtocolDecoder { Channel channel, SocketAddress remoteAddress, Object msg) throws Exception { String sentence = (String) msg; - if (sentence.startsWith(">H")) { + if (sentence.equals("AA55,HB")) { if (channel != null) { - channel.write(">ALIVE\r\n"); + channel.write("55AA,HB,OK\r\n"); } return null; } |