aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2014-01-20 23:17:23 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2014-01-20 23:17:23 +1300
commita7dc44e7b2ebfd8ad70f274ce25727cc9d06118b (patch)
tree3efdf6eff1c662c107b98fb158fac76d5f20f0b8 /src/org/traccar/protocol
parent2fcb2bbaa9239e8c457d2d836c17ddea89c27c3a (diff)
downloadtraccar-server-a7dc44e7b2ebfd8ad70f274ce25727cc9d06118b.tar.gz
traccar-server-a7dc44e7b2ebfd8ad70f274ce25727cc9d06118b.tar.bz2
traccar-server-a7dc44e7b2ebfd8ad70f274ce25727cc9d06118b.zip
Fix Ruptela IMEI decoding
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/RuptelaProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/RuptelaProtocolDecoder.java b/src/org/traccar/protocol/RuptelaProtocolDecoder.java
index 32bf76425..c9f8bd392 100644
--- a/src/org/traccar/protocol/RuptelaProtocolDecoder.java
+++ b/src/org/traccar/protocol/RuptelaProtocolDecoder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 Anton Tananaev (anton.tananaev@gmail.com)
+ * Copyright 2013 - 2014 Anton Tananaev (anton.tananaev@gmail.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -45,7 +45,7 @@ public class RuptelaProtocolDecoder extends BaseProtocolDecoder {
buf.readUnsignedShort(); // data length
// Identify device
- String imei = String.valueOf(buf.readLong());
+ String imei = String.format("%015d", buf.readLong());
long deviceId;
try {
deviceId = getDataManager().getDeviceByImei(imei).getId();