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
I'm looking in to some examples regarding the event filters.
We noticed that while connecting to a server made with the open62541 library we cannot receive any events.
public SimpleAttributeOperandCollection GetSelectClause()
{
SimpleAttributeOperandCollection selectClause = new SimpleAttributeOperandCollection();
var operand = new SimpleAttributeOperand
{
TypeDefinitionId = Opc.Ua.ObjectTypeIds.BaseEventType,
AttributeId = Attributes.NodeId
};
// What is the use of this first SelectClause?
selectClause.Add(operand);
foreach (FilterDeclarationField field in Fields)
{
if (field.Selected)
{
operand = new SimpleAttributeOperand
{
TypeDefinitionId = field.InstanceDeclaration.RootTypeId,
AttributeId = (field.InstanceDeclaration.NodeClass == NodeClass.Object) ? Attributes.NodeId : Attributes.Value,
BrowsePath = field.InstanceDeclaration.BrowsePath
};
selectClause.Add(operand);
}
}
return selectClause;
}
When I do not add the first selectClause than I can receive events.
What is the use of the first selectClause?
Regards Patrick
The text was updated successfully, but these errors were encountered:
I'm looking in to some examples regarding the event filters.
We noticed that while connecting to a server made with the open62541 library we cannot receive any events.
When I do not add the first selectClause than I can receive events.
What is the use of the first selectClause?
Regards Patrick
The text was updated successfully, but these errors were encountered: