aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-08-16 07:10:33 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-08-16 07:10:33 +1200
commit7820541530ea9891c001cbd8c53cc6340380a077 (patch)
tree7afe4382572a82a7e72f23e569d73867034e3fc4 /src/org/traccar/protocol
parenta781fec58e94326a1b1580239cf92dbc543a59a1 (diff)
downloadtrackermap-server-7820541530ea9891c001cbd8c53cc6340380a077.tar.gz
trackermap-server-7820541530ea9891c001cbd8c53cc6340380a077.tar.bz2
trackermap-server-7820541530ea9891c001cbd8c53cc6340380a077.zip
Support new Telic format
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/TelicProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/TelicProtocolDecoder.java b/src/org/traccar/protocol/TelicProtocolDecoder.java
index 62b756ab5..a875009a1 100644
--- a/src/org/traccar/protocol/TelicProtocolDecoder.java
+++ b/src/org/traccar/protocol/TelicProtocolDecoder.java
@@ -34,8 +34,8 @@ public class TelicProtocolDecoder extends BaseProtocolDecoder {
private static final Pattern PATTERN = new PatternBuilder()
.number("dddd")
- .number("(d{6})") // device id
- .number("(d+),") // type
+ .number("(d{6}|d{15})") // device id
+ .number("(dd),") // type
.number("d{12},") // event time
.number("d+,")
.number("(dd)(dd)(dd)") // date (ddmmyy)