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

[Question] How to configure Client to Write? #40

Closed JoaoMCPereira closed 6 years ago

JoaoMCPereira commented 6 years ago

I'm currently running a FLEX Server in a Raspberry Pi, and I want to Write to the Server through IOT2020 also with Node-RED.

This is my current configuration on Client side:

capturar

And in Connector node I got this configuration:

capturar1

But I'm getting the following error "Error: Session Not Valid On Write", I'm sure this is the correct Endpoint because this is the one I'm using in UaExpert to check everything. What I'm doing wrong?

biancode commented 6 years ago

Please, set the Show Errors to checked and watch debug tab. What is the message there?

JoaoMCPereira commented 6 years ago

This is the error I get

capturar2

There is need any specific block, in Node-RED, to make the Client work? Like Server block or any other else?

biancode commented 6 years ago

Please, test the examples under Node-RED menu > Import > examples > iiot opcua. Does it work?

JoaoMCPereira commented 6 years ago

I get both two error messages. The connector always gave me the error "Error stopping node: TimeoutError: timed out after 15000ms"

biancode commented 6 years ago

please test v2.3.1 and/or send your flows of both to me

JoaoMCPereira commented 6 years ago

Can you tell me what is the best way to test de v2.3.1? Run the 'npm install -g node-red-contrib-iiot-opcua' will upgrade it?

biancode commented 6 years ago

@JoaoMCPereira for me npm update -g node-red-contrib-iiot-opcua works too if the node-opcua did not change in minor, but if you got too much trouble or node-opcua changed in minor a clean uninstall and install is the best practice

JoaoMCPereira commented 6 years ago

@biancode I dont have any node-opcua module instaled in the Server or neither in the Client, I don't know that was needed. I should install this module first? Or just clean installation of node-red-contrib-iiot-opcua is needed? Sorry for my silly question, but I did not understand the relation between this two modules. I was thinkng that iiot-opcua was enough to run a fully OPC-UA communication.

JoaoMCPereira commented 6 years ago

@biancode I reinstalled node-red-contrib-iiot-opcua module with the v2.3.1 and now everything works like a charm, Thank you for the help.