diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-10-11 20:10:38 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-11 20:10:38 -0700 |
commit | 7e50d16b6dd99882c53db9d4af3e48548749b78d (patch) | |
tree | 41421eb6fe51169b2093fbdc02091d6fcb6339e4 /src/main/java | |
parent | 1ed18df76447d01ace02ec29856d4bd9c7720e83 (diff) | |
parent | f643887684f3dff65a954fba1ada36e8b81db9d3 (diff) | |
download | trackermap-server-7e50d16b6dd99882c53db9d4af3e48548749b78d.tar.gz trackermap-server-7e50d16b6dd99882c53db9d4af3e48548749b78d.tar.bz2 trackermap-server-7e50d16b6dd99882c53db9d4af3e48548749b78d.zip |
Merge pull request #4750 from jcardus/patch-6
Update MobilogixProtocolDecoder.java
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/traccar/protocol/MobilogixProtocolDecoder.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/MobilogixProtocolDecoder.java b/src/main/java/org/traccar/protocol/MobilogixProtocolDecoder.java index 8677ba9ec..ac75841a4 100644 --- a/src/main/java/org/traccar/protocol/MobilogixProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/MobilogixProtocolDecoder.java @@ -39,7 +39,7 @@ public class MobilogixProtocolDecoder extends BaseProtocolDecoder { .text("[") .number("(dddd)-(dd)-(dd) ") // date (yyyymmdd) .number("(dd):(dd):(dd),") // time (hhmmss) - .number("Td,") // type + .number("Td+,") // type .number("d+,") // device type .expression("[^,]+,") // protocol version .expression("([^,]+),") // serial number @@ -86,6 +86,7 @@ public class MobilogixProtocolDecoder extends BaseProtocolDecoder { if (deviceSession == null) { return null; } + position.set(Position.KEY_TYPE, type); position.setDeviceId(deviceSession.getDeviceId()); int status = parser.nextHexInt(); |