aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol/SwiftechProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-12-15 20:19:33 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2020-12-15 20:19:33 -0800
commit83a139303ef18afcfe706b4f1123457906c89f82 (patch)
tree90572a0adcf0706dee6f3ccc361ac55ae7ab1250 /src/main/java/org/traccar/protocol/SwiftechProtocolDecoder.java
parent069e8b7aaf140f9334eb755e8c3af4a78c4b2d27 (diff)
downloadtrackermap-server-83a139303ef18afcfe706b4f1123457906c89f82.tar.gz
trackermap-server-83a139303ef18afcfe706b4f1123457906c89f82.tar.bz2
trackermap-server-83a139303ef18afcfe706b4f1123457906c89f82.zip
Ignore reserved values
Diffstat (limited to 'src/main/java/org/traccar/protocol/SwiftechProtocolDecoder.java')
-rw-r--r--src/main/java/org/traccar/protocol/SwiftechProtocolDecoder.java4
1 files changed, 3 insertions, 1 deletions
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]),")