aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-05-16 15:30:36 -0700
committerAnton Tananaev <anton@traccar.org>2024-05-16 15:30:42 -0700
commitf1a3367864fde22c1df3ee1a5a5e886be496031d (patch)
tree6c4fab4648535c5ab195ed3db560045631029280 /src/main/java
parent39d0cb2f449c3fcd3ac28f2cd5ead8054c256b4e (diff)
downloadtrackermap-server-f1a3367864fde22c1df3ee1a5a5e886be496031d.tar.gz
trackermap-server-f1a3367864fde22c1df3ee1a5a5e886be496031d.tar.bz2
trackermap-server-f1a3367864fde22c1df3ee1a5a5e886be496031d.zip
Support JT/T808 temperature sensors
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
index fd3015e66..d010a8fe0 100644
--- a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
@@ -492,6 +492,13 @@ public class HuabaoProtocolDecoder extends BaseProtocolDecoder {
position.set(Position.KEY_BATTERY, Integer.parseInt(lockStatus.substring(2, 5)) * 0.01);
}
break;
+ case 0x51:
+ if (length == 16) {
+ for (int i = 1; i <= 8; i++) {
+ position.set(Position.PREFIX_TEMP + i, buf.readShort());
+ }
+ }
+ break;
case 0x56:
position.set(Position.KEY_BATTERY_LEVEL, buf.readUnsignedByte() * 10);
buf.readUnsignedByte(); // reserved