New to NodeRed, Old ... to a lot of CS stuff. I've reviewed the buffer/binary material, but, can't seem to find what I need. Thanks in Advanced
The short of it:
- How to split a 24 byte buffer which holds 6, 4 byte floats so that I can store them into individual fields in Influxdb?
The Long:
I'm receiving 6 floating point numbers from a pzem-016 modbus Energy Monitor. It is wired to a NodeMCU ESP8266 via a RS485 TLL adapter. The code on the esp8266 originally stores the values in a "struct" with the 6 floats. They are "union'd"(overlayed) with a byte array of 24. The array is then sent via a mqtt publish function to the MQTT Broker/NodeRed host. I then want to store the 6 values into separate fields in the Influxdb.
I found the solution: " Flow to decode binary data and a walk-through".
This appears a little more than I'm interested in biting off, now.