You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The above code works with only the first element in the ContentFilter list. All following entries in the list are ignored.
It looks like that an operator like and, or not... is missing in the contentfilter.
I can not find any example or code snippet for solving that problem. I only found examples with a single element in the contentfilter.
Am i totally doing it wrong? Any help is appreciated.
First some server maynot support the complete eventfilter specification. So this could be an issue. Also we just send the Filter as you specify it to the server, so you need to read the OPC UA specification and follow it.
From the spec see https://reference.opcfoundation.org/Core/Part4/v104/docs/7.4.1 :
The filter is evaluated by evaluating the first entry in the element array starting with the first operand in the operand array. The operands of an element may contain References to sub-elements resulting in the evaluation continuing to the referenced elements in the element array.
After reading the referenced link, my life is actually not easier.
I still can`t figure out, how to use multiple filter element connected by logical operands.
Therefore, I reworked my code to use only one filter element.
An example for filtering events by attributes, would be appreciated in the future.
Hi,
I have a server which publishes events derived by BaseEventType. Each event is also prioritized by the "Severity" Attribute of the event.
In the client application I currently want to react on events filtered by the eventtype and the severity.
Currently i try to subscribe to the event with the following code example:
The above code works with only the first element in the ContentFilter list. All following entries in the list are ignored.
It looks like that an operator like and, or not... is missing in the contentfilter.
I can not find any example or code snippet for solving that problem. I only found examples with a single element in the contentfilter.
Am i totally doing it wrong? Any help is appreciated.
Thanks and Regards
Harald
Python-Version: 3.10.12
opcua-asyncio Version: master-branch
The text was updated successfully, but these errors were encountered: