aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorjon-stumpf <jon.stumpf@gmail.com>2017-03-12 14:56:35 -0400
committerjon-stumpf <jon.stumpf@gmail.com>2017-03-17 11:34:32 -0400
commitd094e777991a15cccfdd036da0478053adbe8432 (patch)
tree34e5c8d11c79e3c9012430ce6dc4c6ccac3061c9 /src/org/traccar
parent6e21afb250ba74d1741e038e0bb1aba51214b52f (diff)
downloadtraccar-server-d094e777991a15cccfdd036da0478053adbe8432.tar.gz
traccar-server-d094e777991a15cccfdd036da0478053adbe8432.tar.bz2
traccar-server-d094e777991a15cccfdd036da0478053adbe8432.zip
Implemented capture of milliseconds in L100 protocol as per regex; No documentation available;
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/L100ProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/L100ProtocolDecoder.java b/src/org/traccar/protocol/L100ProtocolDecoder.java
index c8aad3de5..b7c91bc7f 100644
--- a/src/org/traccar/protocol/L100ProtocolDecoder.java
+++ b/src/org/traccar/protocol/L100ProtocolDecoder.java
@@ -40,7 +40,7 @@ public class L100ProtocolDecoder extends BaseProtocolDecoder {
.text("ATL")
.number("(d{15}),") // imei
.text("$GPRMC,")
- .number("(dd)(dd)(dd).ddd,") // time (hhmmss.ms)
+ .number("(dd)(dd)(dd).(ddd),") // time (hhmmss.sss)
.expression("([AV]),") // validity
.number("(dd)(dd.d+),") // latitude
.expression("([NS]),")
@@ -92,7 +92,7 @@ public class L100ProtocolDecoder extends BaseProtocolDecoder {
position.setDeviceId(deviceSession.getDeviceId());
DateBuilder dateBuilder = new DateBuilder()
- .setTime(parser.nextInt(), parser.nextInt(), parser.nextInt());
+ .setTime(parser.nextInt(), parser.nextInt(), parser.nextInt(), parser.nextInt());
position.setValid(parser.next().equals("A"));
position.setLatitude(parser.nextCoordinate());