Edit Decoder

This commit is contained in:
unixweb 2020-05-18 11:45:53 +02:00
parent 2fbb239e4e
commit aab096a5d9

View File

@ -1,6 +1,6 @@
/*********************************************************************
* The TTN Payload function equal for all environment applications
**********************************************************************
**********************************************************************/
function Decoder(bytes, port) {
var retValue = {
bytes: bytes
@ -14,4 +14,5 @@ function Decoder(bytes, port) {
retValue.humidity = ((bytes[8] << 8) | bytes[9]) / 10.0;
return retValue;
}
*********************************************************************/