Hi! I am new to the Forum.
I am creating an IoT app which register certain data into a database from an smart rollator. I have 4 sensors in 4 different topics. I want all of the data to be inserted simultaneously in the database, so I am joining all the mqtt outputs into a function node with the INSERT INTO chart (xxxx) VALUES (a,b,c,.....) inside. My problem is that I don´t know how to give each MQTT output data a different name (a, b, c) so I can do it. All outputs are are called with the same object name: msg.
I forgot to say - you have to use the JavaScript property accessor feature called "bracket notation"
so this example would be msg.payload["ID/Fuerza/Izq"]
but watch the video - it will save you having to remember the above info!
Sometimes the blocker is not knowing what things are called (object / property, array / element, etc) - get them straight and you're half way there.