diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-06-23 12:28:37 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-06-23 12:28:37 +1200 |
commit | f7f3b191e79d61887126c5883b5ece84d134d0a3 (patch) | |
tree | 7a26baa7d286236f46cb4b3c47d0c75163db0532 /src/org/traccar/protocol/T55ProtocolDecoder.java | |
parent | 36f04b88fc965a2f31e5d98f95cb37af15e8dc05 (diff) | |
download | trackermap-server-f7f3b191e79d61887126c5883b5ece84d134d0a3.tar.gz trackermap-server-f7f3b191e79d61887126c5883b5ece84d134d0a3.tar.bz2 trackermap-server-f7f3b191e79d61887126c5883b5ece84d134d0a3.zip |
Extend T55 decoder to support hex ids
Diffstat (limited to 'src/org/traccar/protocol/T55ProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/T55ProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/T55ProtocolDecoder.java b/src/org/traccar/protocol/T55ProtocolDecoder.java index 0a86e46a7..87c7a60c3 100644 --- a/src/org/traccar/protocol/T55ProtocolDecoder.java +++ b/src/org/traccar/protocol/T55ProtocolDecoder.java @@ -240,7 +240,7 @@ public class T55ProtocolDecoder extends BaseProtocolDecoder { this.position = null; return position; } - } else if (sentence.length() == 15 && Character.isDigit(sentence.charAt(0))) { + } else if (sentence.matches("^[0-9A-F]+$")) { identify(sentence, channel, remoteAddress); } else if (sentence.startsWith("$GPRMC")) { return decodeGprmc(sentence, remoteAddress, channel); |