diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-10-09 08:14:47 +0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-10-09 08:14:47 +0800 |
commit | b2ed61db9d33324222c7cbdc5a133152ede0c1ac (patch) | |
tree | e9b8157a245d638f103b2da97773aa05c950a882 /src/org/traccar/protocol/TeltonikaProtocolDecoder.java | |
parent | 7ae0d8de4b5c78e9265a9a5cbb5b19ef19a4f017 (diff) | |
download | trackermap-server-b2ed61db9d33324222c7cbdc5a133152ede0c1ac.tar.gz trackermap-server-b2ed61db9d33324222c7cbdc5a133152ede0c1ac.tar.bz2 trackermap-server-b2ed61db9d33324222c7cbdc5a133152ede0c1ac.zip |
Decode hex driver id
Diffstat (limited to 'src/org/traccar/protocol/TeltonikaProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/TeltonikaProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/TeltonikaProtocolDecoder.java b/src/org/traccar/protocol/TeltonikaProtocolDecoder.java index ddc113816..80f0045d5 100644 --- a/src/org/traccar/protocol/TeltonikaProtocolDecoder.java +++ b/src/org/traccar/protocol/TeltonikaProtocolDecoder.java @@ -132,7 +132,7 @@ public class TeltonikaProtocolDecoder extends BaseProtocolDecoder { position.set(Position.PREFIX_TEMP + 3, readValue(buf, length, true) * 0.1); break; case 78: - position.set(Position.KEY_DRIVER_UNIQUE_ID, String.valueOf(readValue(buf, length, false))); + position.set(Position.KEY_DRIVER_UNIQUE_ID, String.format("%016X", readValue(buf, length, false))); break; case 80: position.set("workMode", readValue(buf, length, false)); |