aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-05-30 06:27:22 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2018-05-30 06:27:22 +1200
commite3bd8d28436195efe640c4214028566bc2643db1 (patch)
tree2cdaa4f4067f93f44ad6325aa7b163cf9467cf71 /src
parentf439d7b06285ce442cd721391aadede3ff6ac702 (diff)
downloadtraccar-server-e3bd8d28436195efe640c4214028566bc2643db1.tar.gz
traccar-server-e3bd8d28436195efe640c4214028566bc2643db1.tar.bz2
traccar-server-e3bd8d28436195efe640c4214028566bc2643db1.zip
Support WP-30C protocol
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/protocol/L100ProtocolDecoder.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/L100ProtocolDecoder.java b/src/org/traccar/protocol/L100ProtocolDecoder.java
index 1fe18ff5e..fe2c298e1 100644
--- a/src/org/traccar/protocol/L100ProtocolDecoder.java
+++ b/src/org/traccar/protocol/L100ProtocolDecoder.java
@@ -54,14 +54,15 @@ public class L100ProtocolDecoder extends BaseProtocolDecoder {
.number("(d+.?d*|N.C),") // adc
.expression("[^,]*,") // reserved
.expression("[^,]*,") // reserved
- .number("(d+.d+),") // odometer
- .number("(d+.d+),") // temperature
- .number("(d+.d+),") // battery
+ .number("(d+.?d*),") // odometer
+ .number("(d+.?d*),") // temperature
+ .number("(d+.?d*),") // battery
.number("(d+),") // rssi
.number("(d+),") // mcc
.number("(d+),") // mnc
.number("(x+),") // lac
.number("(x+)") // cid
+ .any()
.text("ATL")
.compile();