From 555c537739df5fc505f48530afe245f4f308a548 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 22 Jan 2019 21:36:17 -0800 Subject: Decode eelink probe temperature --- src/org/traccar/protocol/EelinkProtocolDecoder.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/org/traccar/protocol') diff --git a/src/org/traccar/protocol/EelinkProtocolDecoder.java b/src/org/traccar/protocol/EelinkProtocolDecoder.java index bffefbddf..dcc87dccc 100644 --- a/src/org/traccar/protocol/EelinkProtocolDecoder.java +++ b/src/org/traccar/protocol/EelinkProtocolDecoder.java @@ -273,6 +273,10 @@ public class EelinkProtocolDecoder extends BaseProtocolDecoder { position.set("co2", buf.readUnsignedInt()); } + if (buf.readableBytes() >= 2) { + position.set(Position.PREFIX_TEMP + 2, buf.readUnsignedShort() / 16.0); + } + } return position; -- cgit v1.2.3