goodcheney / TTN_Mydevice

1 stars 4 forks source link

Decode on TTN #2

Open Dokhra opened 5 years ago

Dokhra commented 5 years ago

Hello,

how do I decode the Data on TTN?

Best Regards!

Pr-Jay commented 5 years ago

Here,

function Decoder(bytes, port) { var temp = (bytes[2] << 8) | bytes[3]; var hum = bytes[6]; // if (port === 1) decoded.led = bytes[0];

return { Temperature: temp/10, Humidity: hum/2, }; }

I know this is quite late, but better than never.