Hi guys,
I’m using node-red-contrib-opcua version 0.2.340 on a Raspberry Pi5.
An OPC UA node is updating it´s value (float) every 5s. I confirmed that, using an OPC UA Client with READ Action and an inject node with a 5s repeat interval.
Now I want to get the value with a subscription instead of polling.
In order to do that I´ve tested two flows as it was described here in the forum.
First one:
Inject node:
“empty”, injecting once after 1s.
OPC UA Item:
Item filed: ns=1;s=my.value
Type: Float
Value and Name: Empty
OPC UA Client:
Endpoint: my endpoint, which is working fine
Action: Subscribe
Interval: 5s
Keep session alive = yes
Second one:
Inject node:
msg.topic: ns=1;s=my.value (also tried with msg.payload: ns=1;s=my.value)
injecting once after 1s.
OPC UA Client:
Endpoint: my endpoint, which is working fine
Action: Subscribe
Interval: 5s
Keep session alive = yes
With both ways I am getting a subscription error.
Thanks for your help
Gregor