diff options
author | Anton Tananaev <anton@traccar.org> | 2023-11-15 06:01:04 -0800 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-11-15 06:01:12 -0800 |
commit | e398778abace08beb3b6eea2de210b000944548e (patch) | |
tree | 6b38a41068c6cc172d162ba8c32c4ea83805ff8e /src/main/java/org/traccar/protocol | |
parent | 3aa0729fba832e13da2fd0a6a1c600636fa235a9 (diff) | |
download | trackermap-server-e398778abace08beb3b6eea2de210b000944548e.tar.gz trackermap-server-e398778abace08beb3b6eea2de210b000944548e.tar.bz2 trackermap-server-e398778abace08beb3b6eea2de210b000944548e.zip |
Fix Mictrack MT710 wifi decoding
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-rw-r--r-- | src/main/java/org/traccar/protocol/Tlt2hProtocolDecoder.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/Tlt2hProtocolDecoder.java b/src/main/java/org/traccar/protocol/Tlt2hProtocolDecoder.java index e85bdf9b3..5ba053df3 100644 --- a/src/main/java/org/traccar/protocol/Tlt2hProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/Tlt2hProtocolDecoder.java @@ -78,8 +78,9 @@ public class Tlt2hProtocolDecoder extends BaseProtocolDecoder { private static final Pattern PATTERN_WIFI = new PatternBuilder() .text("#") .number("(?:(dd)|x+)") // cell or voltage + .expression("#?") .groupBegin() - .number("#(d+),") // mcc + .number("(d+),") // mcc .number("(d+),") // mnc .number("(x+),") // lac .number("(x+)") // cell id @@ -230,6 +231,8 @@ public class Tlt2hProtocolDecoder extends BaseProtocolDecoder { dateBuilder.setDateReverse(parser.nextInt(), parser.nextInt(), parser.nextInt()); getLastLocation(position, dateBuilder.getDate()); + } else { + continue; } } else { |