Hi,
There is an error at the function and I do not know where it is to display 2 values (payload1 and payload2) in ui_template?
I hope the little bit of reading help you out here https://nodered.org/docs/user-guide/messages
Read carefully cos this is base knowledge to understand how all of the things work here in Node-Red
@hebergeweb Your function sets the properties payload1
and payload2
on the msg
object.
It then returns the message objects msg1
and msg2
that don't exist so won't do anything.
Your function should return the msg
object you have set the properties on.
And you are returning an array of messages - that is the syntax for sending messages out via two ports
(see https://nodered.org/docs/writing-functions#multiple-messages ) - which is useful to know about - but not what you require here.
Just change the last line to...
return msg;