Browse Source

Edit Decoder

master
unixweb 1 year ago
parent
commit
aab096a5d9
  1. 5
      decoder-ttn.txt

5
decoder-ttn.txt

@ -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;
}
*********************************************************************/

Loading…
Cancel
Save