I am an PLC engineer whith lots of experience in programming code for machines.
Node red however, is not my cup of tea.
Things which are easy for you, takes me a lot of time to think about.
I have a struggle with the following.
I have 2 inputs... 1 is an answer from my database msg.topic=token, another is an input string msg.topic=id.
I have to make a string with the following:
text <payload of topic "token"> text <payload of topic "id"> text.
Also, provide real example e.g.
"DB msg.payload contains "ABC123" and PLC msg.payload contains "999" - so I want to make a text payload of "The DB token is ABC123 and the PLC value is 999"
Lastly,
Export a demo flow (CTRL+E) so we can have a look.
NOTE: Please do not include database or PLC nodes in your export as we wont have your data nor do we have access to your PLCs (so it is pointless).
Instead, simulate the DB/PLC values using inject nodes.
Also, as you are new to node-red and struggling, you are probably missing some key concepts that help you understand. I recommend watching this playlist: Node-RED Essentials. The videos are done by the developers of node-red. They're nice & short and to the point. You will understand a whole lot more in about 1 hour. A small investment for a lot of gain.
I have everything in a single string now.
Can you tell me how to get it into my http node
what I normally would put into the url field of the http node, is now in the payload of the function.
The function is connected to the http node
I have tried msg.payload, $mag.payload
only errors.