Please include port 107 in your code to cover one more sensor, see working code here:
function Decoder(bytes, port) {
// test payload: 08FB2638FFFFFFFF
var retValue = {};
retValue.port = 107;
retValue.battery_state = 100 * ((bytes[1]>>4)/ 15);
retValue.battery_voltage = (25 + (bytes[1]&&4)) / 10;
retValue.temperature = (bytes[2]) -32;
retValue.relative_humidity = (bytes[3]);
return retValue;
Please include port 107 in your code to cover one more sensor, see working code here:
function Decoder(bytes, port) {
// test payload: 08FB2638FFFFFFFF
var retValue = {};
retValue.port = 107;
retValue.battery_state = 100 * ((bytes[1]>>4)/ 15);
retValue.battery_voltage = (25 + (bytes[1]&&4)) / 10;
retValue.temperature = (bytes[2]) -32;
retValue.relative_humidity = (bytes[3]);
return retValue;