Hi! im new to node red, but im trying to send a payload from a sensor over to a database. this works fine using a text string. But my question is, how can i add the msg.payload variable(that holds the data from the sensor) instead of the data variable with the string Hello World?
json structure is this (added placeholders for the other variables):
yes ! exactly what i did, changed 'hello world with msg.payload and used a json node to convert. i guess i tried to turn the js object into json manually, the first time ^^. but thanks for reply