Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How does the listener works? @Question #758

Open
JohnLeBuff opened this issue Nov 27, 2024 · 2 comments
Open

How does the listener works? @Question #758

JohnLeBuff opened this issue Nov 27, 2024 · 2 comments
Labels

Comments

@JohnLeBuff
Copy link

Hello,
I have a question that I did not find in the documentation.
The OPCUA Listener Node, how does it work?

Does the listener request data from the server or is the listener a subscription to the “nodes”?

Because I use the injection node to inject many OPCUA variables that I want to retrieve and process in Nodered. Some of these variables are not updated if the state change is only for a short period of time e.g. 1.5 seconds.

Hope someone can help me and thanks
John

@mikakaraila
Copy link
Owner

Subscription contains also sampling interval (100ms fastest) and publish is normally 1000ms.

This should work in your case.

@JohnLeBuff
Copy link
Author

Hi, thanks for letting me know.

Im still facing an issue, maybe u can help me or youve heard of something similar. Basically we have an SPS acting as an opcua server and a raspberry acting as a client using node red. Now I want to publish sensor values to the raspberry. This works quite well and we get every state of the sensor.

After a while this method seems to run into trouble. Every now and then we get 3 seconds where we get no data. It feels like a timeout. But the node does not disconnect, it still maintains the "listening" state.

Problem is, if the timing is bad, we miss a sensor state which results in a problem. Have you heard of anything similar, or do you have any idea how to prevent such a timeout?

Maybe im missing something in the best practice because i only have one listener for 30 opcua variables. im not sure if its better to have multiple listeners or maybe even one listener node for each variable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants