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 8 forks source link

node-opcua events values are empty (Prosys simulator) #207

Closed aklauss closed 1 year ago

aklauss commented 1 year ago

Hello. I am trying to get OPCUA events from Prosys simulator using one the availables examples and I am getting an empty value's array as the response.

Information: node.js: 16.17.0 node-red version: 3.0.2 node-red-contrib-iiot-opcua: 4.0.11 node-opcua: 2.64.1

Response: {"payload":{"addressSpaceItems":[{"name":"","nodeId":"ns=0;i=2253","datatypeName":""}],"nodetype":"listen","injectType":"event","value":[]},"topic":"","_msgid":"82c94e0e08609d8c"}

Thanks Antonio Klauss

JoelKrec commented 1 year ago

Hello Antonio, We could reproduce your error but sadly we weren't able to extract the core problem for now. When we create the monitored item we rely on an "item_added" event. There, we receive no data and a bad status code by node-opcua with the following error message: "Expected data is unavailable for the requested time range due to an un-mounted volume, an off-line archive or tape, or similar reason for temporary unavailability. " Maybe it is a problem of node-opcua but sadly we don't have enough time to go to the bottom of this before the next minor release.

We will keep it in mind, though and update you, if we find out more!

With some financial support we could maybe rearrange our priorities and focus on this problem, if you are willing to help and this is really important to you.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 60 days with no activity. It will be closed in 15 days, but can be saved by removing the stale label or commenting.

caccia86 commented 11 months ago

Hi, I encountered the same problem too, any suggests? I can't retrieve data from events generated by OPC UA EUROMAP77 model...

flows.json

image

image

image

Thanks in advance for whatever support

JoelKrec commented 11 months ago

Hello @caccia86

As you can see, we already tried to solve this problem and could not find an easy solution. Because of how old this package is and time reasons, we also decided to halt development of this package and create an up-to-date OPC UA package which is not open source at the moment. There are plans to make an open source version of it but that is not for me to decide.

If you are using this package commercially and want the new premium package, contact us directly and ask for PLUS for Node-RED OPC UA Package.

If you do not want this, there is still the other open source package node-red-contrib-opcua. Maybe it works better than this package.

You could also develop a solution yourself with a fork and a pull request as this package is open source. Help developing is much appreciated.