Shouldn't the below be pulse not water? If i've configured the sensor as counter/pulse but in the payload JSON the pulse is missing and in bacnet the pulse value is always 0, but i see the water go up. The pulses i am receiving to the sensor are gas and electrical not water. So makes sense its called pulse rather than water
|
decoded.water = readFloatLE(bytes.slice(i + 4, i + 8)); |
What i changed my codec too:
decoded.pulse = readFloatLE(bytes.slice(i + 4, i + 8));
Also in the pulse context do we need the following?
decoded.water_conv = readUInt16LE(bytes.slice(i, i + 2)) / 10;
We already have
decoded.pulse_conv = readUInt16LE(bytes.slice(i + 2, i + 4)) / 10;
Similarly, do we need pulse_conv in the water alarm section?
from
// WATER ALARM
else if (channel_id === 0x85 && channel_type === 0xe1) {
decoded.water_conv = readUInt16LE(bytes.slice(i, i + 2)) / 10;
decoded.pulse_conv = readUInt16LE(bytes.slice(i + 2, i + 4)) / 10;
decoded.water = readFloatLE(bytes.slice(i + 4, i + 8));
decoded.water_alarm = readWaterAlarm(bytes[i + 8]);
i += 9;
}
to
// WATER ALARM
else if (channel_id === 0x85 && channel_type === 0xe1) {
decoded.water_conv = readUInt16LE(bytes.slice(i, i + 2)) / 10;
decoded.water = readFloatLE(bytes.slice(i + 4, i + 8));
decoded.water_alarm = readWaterAlarm(bytes[i + 8]);
i += 9;
}
Shouldn't the below be pulse not water? If i've configured the sensor as counter/pulse but in the payload JSON the pulse is missing and in bacnet the pulse value is always 0, but i see the water go up. The pulses i am receiving to the sensor are gas and electrical not water. So makes sense its called pulse rather than water
SensorDecoders/EM_Series/EM300_Series/EM300-DI/EM300-DI_Decoder.js
Line 65 in 518cd81
What i changed my codec too:
decoded.pulse = readFloatLE(bytes.slice(i + 4, i + 8));Also in the pulse context do we need the following?
decoded.water_conv = readUInt16LE(bytes.slice(i, i + 2)) / 10;We already have
decoded.pulse_conv = readUInt16LE(bytes.slice(i + 2, i + 4)) / 10;Similarly, do we need pulse_conv in the water alarm section?
from
to