node-red-contrib-opcua – Value and timestamp do not update after write

Hi,

I am using node-red-contrib-opcua and following the example flow from here:

The server starts correctly and I can connect with UaExpert without any problems. Browsing works and I can see the variables.

However, when I change a variable value — either:

  • by writing from UaExpert, or
  • by updating the value from Node-RED (via inject / server message)

the following happens:

  • The value does not change (it stays the same as before), and
  • The timestamp is not updated.

There are no visible errors in Node-RED.

I am using:

  • node-red-contrib-opcua version: 0.2.348
  • OPC UA Server running on opc.tcp://127.0.0.1:53880
  • Anonymous login, SecurityPolicy: None

Questions:

  • Is there anything special required to trigger a DataChange?
  • Does the server require a specific message format to properly update value and timestamp?
  • Is sourceTimestamp handled automatically or must it be set manually?

Any hints would be appreciated.

Thank you!

I have exactly the same and when I try to write on a variable that is created automatically by the OPC-UA server (MyVariable2) it is working??

I downgraded from 0.2.350 to 0.2.340 and it is working perfectly I am suspecting a bug on 350 maybe in the command to change the variable value...

What have you downgraded?

Opc-ua package to 0.2.340 right now the latest is 0.2.350 and the guy who started the chat is in 0.2.348.