From 98893c2894cc5ce183f84922a023d93b5eaef28b Mon Sep 17 00:00:00 2001 From: Stefan Brand Date: Wed, 31 Mar 2021 16:53:16 +0200 Subject: [PATCH] Fix Payload Decoder Template --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 631a1bf..410a5e6 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ You need to specify a Payload Decoder fitting for your configured Sensors for a var i = 1; /* Start CO2-Sensor (SG112A, MH-Z19C, Sensair S8, Sensirion SCD30) PPM */ - // decoded.ppm = ((input.bytes[ii]) | (input.bytes[ii] << 8 )); + // decoded.ppm = bytesUToInt16(input.bytes, i); // i += 2; /* End CO2 Sensor PPM */ @@ -70,8 +70,8 @@ You need to specify a Payload Decoder fitting for your configured Sensors for a Will append all recognized Sensors as t1, t2, t3... */ // var n = 1; // for (var j = i; j < input.bytes.length-1; j+=2) { - // decoded["t" + n] = bytesToInt16(input.bytes, j); - // j++; + // decoded["t" + n] = bytesToInt16(input.bytes, j)/100; + // n++; // } /* End DS18B20 Temperatures */