mikakaraila / node-red-contrib-opcua

A Node-RED node to communicate OPC UA. Uses node-opcua library.
Other
217 stars 197 forks source link

Read multiple and return the value in one message #745

Closed YTCodeSpace closed 4 weeks ago

YTCodeSpace commented 1 month ago

I want to read multiple variables and return them in the same message, like an array. But after all i have tried, i always get them in separate messages. I used READ MULTIPLE but nothing changes.

image

mikakaraila commented 1 month ago

I have to think a bit. I don´t want to break existing functionality, but this should be possible to implement.

YTCodeSpace commented 1 month ago

I have to think a bit. I don´t want to break existing functionality, but this should be possible to implement.

Now i need to use a Join function to combine the messages together. So it looks like that the options READ and READ MULTIPLE make no difference, and READ is even more easier since it doesn't need an extra inject to start. : )

mikakaraila commented 1 month ago

I go it done, but I will test more. There is now output pin 3 that will contain:

topic multipleItems[] and payload dataValues[]

Like this: image

mikakaraila commented 4 weeks ago

Output PIN 3 contains now array with dataValues, v0.2.337