aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-02-04 21:02:13 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2013-02-04 21:02:13 +1300
commit652c9ee29e9802c50db6defd75c05b1c5e0d0b3a (patch)
tree13306957dfa5176c1b24fd72d6424a79276b612d
parent9a63b052bfa097e97522ad809441e5c8e817c098 (diff)
downloadtraccar-server-652c9ee29e9802c50db6defd75c05b1c5e0d0b3a.tar.gz
traccar-server-652c9ee29e9802c50db6defd75c05b1c5e0d0b3a.tar.bz2
traccar-server-652c9ee29e9802c50db6defd75c05b1c5e0d0b3a.zip
Fixed teltonika decoder (fix #135)
-rw-r--r--src/org/traccar/protocol/TeltonikaProtocolDecoder.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/TeltonikaProtocolDecoder.java b/src/org/traccar/protocol/TeltonikaProtocolDecoder.java
index 2c1028881..100792cb9 100644
--- a/src/org/traccar/protocol/TeltonikaProtocolDecoder.java
+++ b/src/org/traccar/protocol/TeltonikaProtocolDecoder.java
@@ -67,6 +67,7 @@ public class TeltonikaProtocolDecoder extends BaseProtocolDecoder {
Position position = new Position();
StringBuilder extendedInfo = new StringBuilder("<protocol>teltonika</protocol>");
+ position.setDeviceId(deviceId);
position.setTime(new Date(buf.readLong()));
extendedInfo.append("<priority>");