aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-01-26 21:24:14 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2020-01-26 21:24:14 -0800
commit2d5a5e600e576cd4e31046be104cc98f799ad091 (patch)
tree4af276bd742382c06d871dbed7b26e5793ff7753 /src/main/java/org/traccar/protocol
parentc8198d40db6e623ee45eff121cdf8cfaa2d58281 (diff)
downloadtrackermap-server-2d5a5e600e576cd4e31046be104cc98f799ad091.tar.gz
trackermap-server-2d5a5e600e576cd4e31046be104cc98f799ad091.tar.bz2
trackermap-server-2d5a5e600e576cd4e31046be104cc98f799ad091.zip
Decode BLE location
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-rw-r--r--src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java b/src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java
index b6f257d2c..b8ab134c5 100644
--- a/src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java
@@ -154,6 +154,15 @@ public class Minifinder2ProtocolDecoder extends BaseProtocolDecoder {
mac.substring(0, mac.length() - 1), rssi));
}
break;
+ case 0x23:
+ if (endIndex > buf.readerIndex()) {
+ buf.skipBytes(6); // mac
+ }
+ if (endIndex > buf.readerIndex()) {
+ position.setLatitude(buf.readIntLE() * 0.0000001);
+ position.setLongitude(buf.readIntLE() * 0.0000001);
+ }
+ break;
case 0x24:
position.setTime(new Date(buf.readUnsignedIntLE() * 1000));
long status = buf.readUnsignedIntLE();