diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-08-01 16:42:14 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-08-01 16:42:14 -0700 |
commit | a89f5095b9c67c08e33776dc09e1f3c7b3452ac5 (patch) | |
tree | e459be8c62c1f1891f0fc4a145a8de523e6eb414 /src/main/java | |
parent | c7677c1a695b210114070f53d9bcadaa6fd5e5e7 (diff) | |
download | trackermap-server-a89f5095b9c67c08e33776dc09e1f3c7b3452ac5.tar.gz trackermap-server-a89f5095b9c67c08e33776dc09e1f3c7b3452ac5.tar.bz2 trackermap-server-a89f5095b9c67c08e33776dc09e1f3c7b3452ac5.zip |
Add another message response
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/traccar/protocol/EasyTrackProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/EasyTrackProtocolDecoder.java b/src/main/java/org/traccar/protocol/EasyTrackProtocolDecoder.java index d22106a80..115884e2c 100644 --- a/src/main/java/org/traccar/protocol/EasyTrackProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/EasyTrackProtocolDecoder.java @@ -97,7 +97,7 @@ public class EasyTrackProtocolDecoder extends BaseProtocolDecoder { String sentence = (String) msg; String type = sentence.substring(20, 22); - if (type.equals("TX") && channel != null) { + if ((type.equals("TX") || type.equals("MQ")) && channel != null) { channel.writeAndFlush(new NetworkMessage(sentence + "#", remoteAddress)); } |