Read own type within event

Questions regarding the use of the .NET SDK 2.0 for Server or Client development or integration into customer products ...

Moderator: uasdknet

Post Reply
bontor
Jr. Member
Jr. Member
Posts: 1
Joined: 30 Apr 2019, 10:46

Read own type within event

Post 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 )?

Post Reply