aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-11-08 10:01:28 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2018-11-08 10:01:28 +1300
commit81d2b86ac7cca874b32c94fffa28b902c6fb0eca (patch)
tree1c4535cbf944e2d7777b7c43e718de34ee2e9cc4 /src/org/traccar/protocol
parent0f7f9772723a1bc0acedf8a51a1358efa8b1b46c (diff)
downloadtrackermap-server-81d2b86ac7cca874b32c94fffa28b902c6fb0eca.tar.gz
trackermap-server-81d2b86ac7cca874b32c94fffa28b902c6fb0eca.tar.bz2
trackermap-server-81d2b86ac7cca874b32c94fffa28b902c6fb0eca.zip
Fix GPS103 response
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/Gps103ProtocolDecoder.java2
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);