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

Question: Asynchronously update value for datasource-variables? #2548

Open
2 of 7 tasks
pboettch opened this issue Mar 6, 2019 · 0 comments
Open
2 of 7 tasks

Question: Asynchronously update value for datasource-variables? #2548

pboettch opened this issue Mar 6, 2019 · 0 comments

Comments

@pboettch
Copy link

pboettch commented Mar 6, 2019

I have an existing device which exposes sensor data via various protocols. We now would like to add an OPC-UA-server.

We have a nodeset and basic understanding of how OPC-UA works. (There is still some confusion of Nodes vs. Objects, but that's another story).

The process which runs the open62541-server receives sensors-data updates via IPC-messages asynchronously within a thread different from the main one.

How should I inform the server that there is a new values available?

Can I do it from my thread with UA_Server_writeValue() (is the server thread-safe)?

If a datasource-variable is the right way, how do I inform the server that there are new values available? How will it inform client which are subscribed on this variable clients?

Thanks in advance for your help - I hope I didn't mix up things.

  • open62541 Version (release number or git tag): master-branch
  • Other OPC UA SDKs used (client or server):
  • Operating system: Linux
  • Logs (with UA_LOGLEVEL set as low as necessary) attached
  • Wireshark network dump attached
  • Self-contained code example attached
  • Critical issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant