Hi!
I'm using the Modbus-Getter node in node-red to retrieve data from a Schneider electric Acti9 Smartlink SI D power meter gateway.
The Voltage, Amperage, and Wattage are a Float32 file.
From the Modbus-Getter node it goes to a function node with this string in it;
const buf = Buffer.from(msg.payload.buffer);
const value = buf.readFloatBE();
msg.payload = {"Voltage": value};
return msg;
I would like to read the Kilowatthour too, but that is an INT64 file.
I hope someone can help me with this, i'm still learning in node-red.
Thanks!