aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-03-10 07:34:15 -0800
committerAnton Tananaev <anton@traccar.org>2023-03-10 07:34:15 -0800
commitf4d10160d9513eb190169d0ab335c3d99c6d4e31 (patch)
tree5ba05b4e8b8baaa478f9aabb9a69f6cf255ca5d8 /src/main/java/org/traccar/protocol
parent2749e520c9ea1ba778c120739e2b67a9fe5e119c (diff)
downloadtrackermap-server-f4d10160d9513eb190169d0ab335c3d99c6d4e31.tar.gz
trackermap-server-f4d10160d9513eb190169d0ab335c3d99c6d4e31.tar.bz2
trackermap-server-f4d10160d9513eb190169d0ab335c3d99c6d4e31.zip
Decode bark count
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-rw-r--r--src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java b/src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java
index 0b08badb8..aa43a6054 100644
--- a/src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java
@@ -277,6 +277,10 @@ public class Minifinder2ProtocolDecoder extends BaseProtocolDecoder {
i += 1;
}
break;
+ case 0x37:
+ buf.readUnsignedIntLE(); // timestamp
+ position.set("barkCount", BitUtil.to(buf.readUnsignedIntLE(), 31));
+ break;
case 0x40:
buf.readUnsignedIntLE(); // timestamp
int heartRate = buf.readUnsignedByte();