diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-11-08 10:01:28 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-11-08 10:01:28 +1300 |
commit | 81d2b86ac7cca874b32c94fffa28b902c6fb0eca (patch) | |
tree | 1c4535cbf944e2d7777b7c43e718de34ee2e9cc4 /src/org/traccar | |
parent | 0f7f9772723a1bc0acedf8a51a1358efa8b1b46c (diff) | |
download | trackermap-server-81d2b86ac7cca874b32c94fffa28b902c6fb0eca.tar.gz trackermap-server-81d2b86ac7cca874b32c94fffa28b902c6fb0eca.tar.bz2 trackermap-server-81d2b86ac7cca874b32c94fffa28b902c6fb0eca.zip |
Fix GPS103 response
Diffstat (limited to 'src/org/traccar')
-rw-r--r-- | src/org/traccar/protocol/Gps103ProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/Gps103ProtocolDecoder.java b/src/org/traccar/protocol/Gps103ProtocolDecoder.java index b459f6340..72e8430ba 100644 --- a/src/org/traccar/protocol/Gps103ProtocolDecoder.java +++ b/src/org/traccar/protocol/Gps103ProtocolDecoder.java @@ -330,7 +330,7 @@ public class Gps103ProtocolDecoder extends BaseProtocolDecoder { String sentence = (String) msg; - if (sentence.contains("imei:") && sentence.length() <= 25) { + if (sentence.contains("imei:") && sentence.length() <= 30) { if (channel != null) { channel.writeAndFlush(new NetworkMessage("LOAD", remoteAddress)); Matcher matcher = Pattern.compile("imei:(\\d+),").matcher(sentence); |