-
Hi! I've been working good with event subscriptions in a number of servers using the code below:
However, connecting to a TwinCAT (Beckhoff) server, and I'm not getting any event notifications. Data change notifications are working fine (I've doubled checked the EventLogger nodeId, and it's correct.) UaExpert is receiving the Events from this server+nodeId as expected. Any ideas on how to debug this? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 10 replies
-
hey @danmoser unfortunatly i dont have Beckhoff hardware to test against! |
Beta Was this translation helpful? Give feedback.
-
You could try to set a custom eventfilter, to rule out a error in the eventfilter generation.
|
Beta Was this translation helpful? Give feedback.
-
Hi folks!
|
Beta Was this translation helpful? Give feedback.
-
I became aware that this is a known problem. Issue #573 describes a very similar behavior for CodeSys (instead of TwinCAT). What I'm doing to have all events from the server is skipping (commenting out) IMO, the no-filtering option should be configurable by the user in the client interface. |
Beta Was this translation helpful? Give feedback.
-
Ok I checked our WhereClause generator. Which generates wrong WhereClauses. If you pass BaseEventType only Events of BaseEventType the first SubEvents, like AuditEventType. If the server generates a Event with the SubEvent of AuditEvent. The server will filter it out because of our WhereClause. |
Beta Was this translation helpful? Give feedback.
I became aware that this is a known problem. Issue #573 describes a very similar behavior for CodeSys (instead of TwinCAT).
What I'm doing to have all events from the server is skipping (commenting out)
evfilter.WhereClause
insideget_filter_from_event_type()
- - fileasyncua/common/events.py
.IMO, the no-filtering option should be configurable by the user in the client interface.