aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-11-23 10:44:04 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2018-11-23 10:44:04 +1300
commit7a857c727ac11f0c48c7213c81b37aa0d8ef5675 (patch)
tree70ae4ce0ac40f9269784a2a1fb852291cfac3d9f /src
parent65d0cdf1a38861ac4a53b9c7fa6489c20c179df6 (diff)
downloadtrackermap-server-7a857c727ac11f0c48c7213c81b37aa0d8ef5675.tar.gz
trackermap-server-7a857c727ac11f0c48c7213c81b37aa0d8ef5675.tar.bz2
trackermap-server-7a857c727ac11f0c48c7213c81b37aa0d8ef5675.zip
Update H002 protocol
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/protocol/Pt60ProtocolDecoder.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/Pt60ProtocolDecoder.java b/src/org/traccar/protocol/Pt60ProtocolDecoder.java
index 51a916475..636d9e27e 100644
--- a/src/org/traccar/protocol/Pt60ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Pt60ProtocolDecoder.java
@@ -48,6 +48,7 @@ public class Pt60ProtocolDecoder extends BaseProtocolDecoder {
.number("(d+)[,|]") // imei
.number("d+[,|]") // imsi
.groupBegin()
+ .expression("[^,|]+[,|]").optional() // firmware version
.number("[01][,|]") // state
.number("d+[,|]") // battery
.groupEnd("?")