Event subscription .Net #2618
Unanswered
benoitdaireaux
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Wouldn't something like this work, pretty much equivalent to the UA SDK? filter.WhereClause.Push(FilterOperator.Equals, BrowseNames.SourceNode, new Variant(nodeId)); It would also be helpful if you could specify what exactly isn't working. Do you get a compiler error? All events, regardless of SourceNode? Or no events at all? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I want to subscribe to events notified by a server, and filter those events based on the source nodeid value.
The following piece of code works when I use the UnifiedAutomation SDK:
and I would like to reproduce it using the OPCFoundation .net SDK.
I couldn't find a way to properly set the select and where clauses (I suspect the where clause is the main issue).
ChatGPT (openAI) suggests the more or less the following:
but this doesn't work.
Any assistance or tips would be appreciated!
Thanks,
Benoît Daireaux
Beta Was this translation helpful? Give feedback.
All reactions