mikakaraila / node-red-contrib-opcua

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

Issue when using version 0.2.331 #717

Open jamalsal opened 4 months ago

jamalsal commented 4 months ago

Hi. I encountered the following error when using the OPC UA Client Node on version 0.2.331: "StatusCode: BadNotReadable (0x803a0000) The access level does not allow reading or subscribing to the Node." When downgrading to version 0.2.310, it was possible to establish a connection with the server, without any modifications to the node.

RudolfTheRedNode commented 4 months ago

Hi @mikakaraila, last previous version got my program working in multiple write,. now whenever I trigger this I got errors:

Client node error on: AMS OPC Client WRITE2 error: ["Write multiple as array session is not active!"]

This is my function code below:

msg.payload = [];

msg.topic = "write";

msg.payload[0] = { nodeId: "ns=3;i=16847616", datatype: "Boolean", value: true }

msg.payload[1] = { nodeId: "ns=3;i=16847104", datatype: "Boolean", value: true }

return msg;

mikakaraila commented 3 months ago

To write values msg.topic should be "writemultiple"