From 7a29a1140f872764663b48661473a97be522f96c Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 20 May 2020 21:40:04 -0700 Subject: Decode temperature sensor --- src/main/java/org/traccar/protocol/BceProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/traccar/protocol/BceProtocolDecoder.java b/src/main/java/org/traccar/protocol/BceProtocolDecoder.java index 6292334a2..60d705db8 100644 --- a/src/main/java/org/traccar/protocol/BceProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/BceProtocolDecoder.java @@ -171,7 +171,7 @@ public class BceProtocolDecoder extends BaseProtocolDecoder { position.set(Position.KEY_DRIVER_UNIQUE_ID, String.valueOf(buf.readLongLE())); } if (BitUtil.check(mask, 7)) { - buf.readUnsignedShortLE(); // dallas temperature + position.set(Position.PREFIX_TEMP + 1, buf.readUnsignedShortLE() * 0.1 - 273); } if (BitUtil.check(mask, 8)) { buf.readUnsignedShortLE(); // dallas humidity -- cgit v1.2.3