Page 1 of 1

Read own type within event

Posted: 07 Sep 2021, 15:03
by bontor
Hello.

I am using the .NET Based OPC UA Client/Server SDK and reading data received with an event.

The event contains besides the standard data like "EventId", "Time", ... and additional data. The additional data is contained in an own type with id= 1008 and namespaceIndex = 2.

BasicEventType
|-EventId
|-Time
...
|-OwnType --> id= 1008 and namespaceIndex = 2.
|-data1 --> id= ... and namespaceIndex = 2.
|-data2 --> id= ... and namespaceIndex = 2.
|....

The event is received within an event handler. The data of the event received is set up in a filter as followed:

filter.SelectClauses.Add(BrowseNames.EventId);
filter.SelectClauses.Add(BrowseNames.Time);
filter.SelectClauses.Add(BrowseNames.Message);
filter.SelectClauses.Add(BrowseNames.EventType);
filter.SelectClauses.Add(BrowseNames.Severity);
filter.SelectClauses.Add(BrowseNames.SourceName);

I am receiving the standard data set up in the filter via the event, but I do not receive the data of the own type contained in the event.

How do I set up the filter to receive also the data (data1, data2, ...) of the own type (OwnType )?