aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-10-11 20:10:38 -0700
committerGitHub <noreply@github.com>2021-10-11 20:10:38 -0700
commit7e50d16b6dd99882c53db9d4af3e48548749b78d (patch)
tree41421eb6fe51169b2093fbdc02091d6fcb6339e4 /src/main/java/org
parent1ed18df76447d01ace02ec29856d4bd9c7720e83 (diff)
parentf643887684f3dff65a954fba1ada36e8b81db9d3 (diff)
downloadtraccar-server-7e50d16b6dd99882c53db9d4af3e48548749b78d.tar.gz
traccar-server-7e50d16b6dd99882c53db9d4af3e48548749b78d.tar.bz2
traccar-server-7e50d16b6dd99882c53db9d4af3e48548749b78d.zip
Merge pull request #4750 from jcardus/patch-6
Update MobilogixProtocolDecoder.java
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/traccar/protocol/MobilogixProtocolDecoder.java3
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();