From 83a139303ef18afcfe706b4f1123457906c89f82 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 15 Dec 2020 20:19:33 -0800 Subject: Ignore reserved values --- src/main/java/org/traccar/protocol/SwiftechProtocolDecoder.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main/java/org/traccar/protocol') diff --git a/src/main/java/org/traccar/protocol/SwiftechProtocolDecoder.java b/src/main/java/org/traccar/protocol/SwiftechProtocolDecoder.java index 145d80484..b668202dd 100644 --- a/src/main/java/org/traccar/protocol/SwiftechProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/SwiftechProtocolDecoder.java @@ -36,7 +36,9 @@ public class SwiftechProtocolDecoder extends BaseProtocolDecoder { private static final Pattern PATTERN = new PatternBuilder() .text("@@") - .number("(d+),,,") // imei + .number("(d+),") // imei + .expression("[^,]*,") + .expression("[^,]*,") .number("(dd)(dd)(dd),") // time (hhmmss) .number("(dd)(dd.d+),") // latitude .expression("([NS]),") -- cgit v1.2.3