aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-05-17 18:11:09 -0700
committerAnton Tananaev <anton@traccar.org>2022-05-17 18:11:09 -0700
commit433816109a02622145ff5ead295d3aff5bafaacd (patch)
treedc3eb4c61d2468b156c653dd0f8c7b3e8cdc4c4f /src/main/java/org/traccar
parentdcdbbf298e91e04c36c0310ac9c3314000d8781f (diff)
downloadtrackermap-server-433816109a02622145ff5ead295d3aff5bafaacd.tar.gz
trackermap-server-433816109a02622145ff5ead295d3aff5bafaacd.tar.bz2
trackermap-server-433816109a02622145ff5ead295d3aff5bafaacd.zip
Decode Minifinder pet activity
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r--src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java b/src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java
index 641a45864..c63226c80 100644
--- a/src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2019 - 2021 Anton Tananaev (anton@traccar.org)
+ * Copyright 2019 - 2022 Anton Tananaev (anton@traccar.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -263,6 +263,14 @@ public class Minifinder2ProtocolDecoder extends BaseProtocolDecoder {
buf.readUnsignedInt(); // timestamp
position.set(Position.KEY_STEPS, buf.readUnsignedInt());
break;
+ case 0x31:
+ int i = 1;
+ while (buf.readerIndex() < endIndex) {
+ position.set("activity" + i + "Time", buf.readUnsignedInt());
+ position.set("activity" + i, buf.readUnsignedInt());
+ i += 1;
+ }
+ break;
case 0x40:
buf.readUnsignedIntLE(); // timestamp
int heartRate = buf.readUnsignedByte();