diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-08-11 20:45:47 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-08-11 20:45:47 -0700 |
commit | eac5f4889b4eadcd2878716be9b33224bde57d4a (patch) | |
tree | 8adcf597151b4628754c1d3f390b0193edf9320b /src/main | |
parent | ea39e1d4c8ba7fe8e2a017ec064b3bcb90f2e1d8 (diff) | |
download | trackermap-server-eac5f4889b4eadcd2878716be9b33224bde57d4a.tar.gz trackermap-server-eac5f4889b4eadcd2878716be9b33224bde57d4a.tar.bz2 trackermap-server-eac5f4889b4eadcd2878716be9b33224bde57d4a.zip |
Decode home WiFi network
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java | 9 |
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 d20e18556..059041d6b 100644 --- a/src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java @@ -242,6 +242,15 @@ public class Minifinder2ProtocolDecoder extends BaseProtocolDecoder { endIndex - buf.readerIndex(), StandardCharsets.US_ASCII).toString()); } break; + case 0x2A: + buf.readUnsignedByte(); // flags + buf.skipBytes(6); // mac + buf.readUnsignedByte(); // rssi + position.setLatitude(buf.readIntLE() * 0.0000001); + position.setLongitude(buf.readIntLE() * 0.0000001); + position.setValid(true); + hasLocation = true; + break; case 0x30: buf.readUnsignedInt(); // timestamp position.set(Position.KEY_STEPS, buf.readUnsignedInt()); |