From ebfc5667699d63c480b7eed87f4869b29dbae744 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 9 Feb 2019 12:35:05 -0800 Subject: Fix temperature decoding --- test/org/traccar/protocol/EelinkProtocolDecoderTest.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') diff --git a/test/org/traccar/protocol/EelinkProtocolDecoderTest.java b/test/org/traccar/protocol/EelinkProtocolDecoderTest.java index 3e2a896f7..f8a16c46f 100644 --- a/test/org/traccar/protocol/EelinkProtocolDecoderTest.java +++ b/test/org/traccar/protocol/EelinkProtocolDecoderTest.java @@ -14,6 +14,10 @@ public class EelinkProtocolDecoderTest extends ProtocolTest { verifyNull(decoder, binary( "454C0027E753035254407167747167670100180002035254407167747100200205020500010432000086BD")); + verifyAttribute(decoder, binary( + "676712003400e45c5b0ade02012e03702d87064546aa24066a1086018a0000002dc1a0ffffffff0afd074d000000000000000000000000fce0"), + Position.PREFIX_TEMP + 2, -50.0); + verifyAttribute(decoder, binary( "6767120043000e5c37387c0304e4e1b4f8194fa800160013009408012e03702d8706453c6e5b066f115f05710000001b067f8d248d240313020500000000000000000000000001cc"), Position.PREFIX_TEMP + 2, 28.75); -- cgit v1.2.3