I’m trying to read data into two different gauss in node red.
I have these flow:enter image description here
In the function block I have these code:
`var lines = msg.payload.split(‘rn’);
var adcValue = parseFloat(lines[0].split(‘:’)[1]);
var temperature = parseFloat(lines[1].split(‘:’)[1]);
msg.payload = adcValue, temperature;
return msg;`
I want to get the temperature value in one gauss and the adcValue into another one.
Who can I do it?
Thank you
Tiago Matos is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.