Encoding 4-byte signed value


Hi, I have a KNX Energy saver and I am using Node-RED to visualize the consumption. The type of msg.payload is 4-byte signed value.

" 09/11/2018 à 12:43:50node: 3156fe23.2366e2knx: write : msg.payload : Object


srcphy: "3.1.8"

dstgad: "7/6/5"

value: buffer[4]raw

0: 0x0

1: 0x0

2: 0x0

3: 0x33
I want to convert the buffer in decimal value.

Thank you for your help.


did the answer you were given last time you asked this question not work?

Encoding 4 byte Float value

I obtain the right values. Thank you