From 8d1bb744f845cb605417229e000d49d9cd58b54b Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 15 Feb 2021 23:26:07 -0800 Subject: Decode temperature and humidity --- src/main/java/org/traccar/protocol/AtrackProtocolDecoder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/org/traccar/protocol') diff --git a/src/main/java/org/traccar/protocol/AtrackProtocolDecoder.java b/src/main/java/org/traccar/protocol/AtrackProtocolDecoder.java index 9300acf60..186b81470 100644 --- a/src/main/java/org/traccar/protocol/AtrackProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/AtrackProtocolDecoder.java @@ -155,10 +155,10 @@ public class AtrackProtocolDecoder extends BaseProtocolDecoder { break; case 3: if (BitUtil.check(mask, 6)) { - data.readUnsignedShort(); + position.set("tag" + i + "Humidity", data.readUnsignedShort()); } if (BitUtil.check(mask, 5)) { - data.readUnsignedShort(); + position.set("tag" + i + "Temp", data.readUnsignedShort()); } if (BitUtil.check(mask, 3)) { position.set("tag" + i + "Rssi", data.readUnsignedByte()); -- cgit v1.2.3