diff options
author | Anton Tananaev <anton@traccar.org> | 2022-09-09 17:35:56 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-09-09 17:35:56 -0700 |
commit | 725195a271f4313255b80c99278b3a91cff799e1 (patch) | |
tree | b6d0cbbb4c6966929e92ac07a2ce4003dc641ef9 /src/main/java/org/traccar/protocol | |
parent | ff95c7dc0adf17710438f7dd2168d6ad1dd31415 (diff) | |
download | trackermap-server-725195a271f4313255b80c99278b3a91cff799e1.tar.gz trackermap-server-725195a271f4313255b80c99278b3a91cff799e1.tar.bz2 trackermap-server-725195a271f4313255b80c99278b3a91cff799e1.zip |
Add DT700 bluetooth temperature
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-rw-r--r-- | src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java index 5393c6f74..d2b8f1fb5 100644 --- a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java @@ -513,6 +513,16 @@ public class HuabaoProtocolDecoder extends BaseProtocolDecoder { position.set(Position.KEY_MOTION, BitUtil.check(deviceStatus, 2)); position.set("cover", BitUtil.check(deviceStatus, 3)); break; + case 0xE6: + int sensorIndex = buf.readUnsignedByte(); + buf.skipBytes(6); // mac + position.set( + Position.PREFIX_TEMP + sensorIndex, + buf.readUnsignedByte() + buf.readUnsignedByte() * 0.01); + position.set( + "humidity" + sensorIndex, + buf.readUnsignedByte() + buf.readUnsignedByte() * 0.01); + break; case 0xEB: if (buf.getUnsignedShort(buf.readerIndex()) > 200) { Network network = new Network(); |