I have created a flow to pull data from a solar charge controller and send to MQTT then a String node to select the 'voltage' data from the string. I would like to input this data to Influxdb but im stuck on the code needed in the Function node to change the data into the right format for Influxdb.
Via a debug node the output from my String node is
Mppt/Sunsaver : msg.payload : string
With the Function node how do I input this to Influxdb.
Thanks in advance