BiancoRoyal / node-red-contrib-iiot-opcua

deprecated - very new developed by PLUS for Node-RED - https://plus4nodered.com
https://www.npmjs.com/package/node-red-contrib-iiot-opcua
BSD 3-Clause "New" or "Revised" License
34 stars 9 forks source link

"Error: Session Not Valid On Write" #25

Closed JoaoMCPereira closed 6 years ago

JoaoMCPereira commented 6 years ago

I'm new to node-red and to OPC-UA. After installing node-red and this module I run a few examples and always got the same error message saying "Error: Session Not Valid On Write" I also copy the examples 'write.json', 'read.json' and 'server-demo.json' but same error message is showing up. What I'm missing? I need to install something else besides 'node-red-node-data-generator'?

Thanks for the help

w4tsn commented 6 years ago

My Issue #26 might be related since it throws the error Error: Session Not Valid On Read. As of my understanding the Connector-Node could not connect to the OPC-UA server, so the read/write nodes can't access the server endpoint.

What I had to do in order to get the examples to work was:

  1. enable anonymous access in the server node
  2. allow non-existing endpoint in the connector-node LOCAL SERVER
biancode commented 6 years ago
grafik

or set/check the endpoint uri is correct

biancode commented 6 years ago

do not inject read, listen or write before server is ready - use the start delay with some seconds