From 81d2b86ac7cca874b32c94fffa28b902c6fb0eca Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 8 Nov 2018 10:01:28 +1300 Subject: Fix GPS103 response --- src/org/traccar/protocol/Gps103ProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/org/traccar/protocol') 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); -- cgit v1.2.3