diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-04-29 20:41:46 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-04-29 20:41:46 -0700 |
commit | 7a4f3f22239cc9b3405387a29819654265e9b345 (patch) | |
tree | d1c2bc906a83dea782fa02a9b5dcb3a221689038 /src/main/java/org/traccar/protocol | |
parent | b9ebe1d8110ec2be044a454aa6fa9a3ddde78664 (diff) | |
download | trackermap-server-7a4f3f22239cc9b3405387a29819654265e9b345.tar.gz trackermap-server-7a4f3f22239cc9b3405387a29819654265e9b345.tar.bz2 trackermap-server-7a4f3f22239cc9b3405387a29819654265e9b345.zip |
Decode serial driver id
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-rw-r--r-- | src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java b/src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java index 76e3e6ecc..d8710a899 100644 --- a/src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java @@ -356,6 +356,8 @@ public class SuntechProtocolDecoder extends BaseProtocolDecoder { totalFuel += fuel2; position.set("fuel2", fuel2); } + } else if (attribute.startsWith("GTSL")) { + position.set(Position.KEY_DRIVER_UNIQUE_ID, attribute.split("\\|")[4]); } else { String[] pair = attribute.split("="); if (pair.length >= 2) { |