EventData Class
Module: opcua.address_space
Constructor
Item Index
Methods
addEventType
(
UAObjectType
-
options
add a new event type to the address space
Parameters:
-
options
Object-
browseName
Stringthe eventType name
-
[subtypeOf="BaseEventType"]
optional -
[isAbstract= true]
optional
-
Returns:
UAObjectType:
: the object type
Example:
var evtType = namespace.addEventType({
browseName: "MyAuditEventType",
subtypeOf: "AuditEventType"
});
var myConditionType = namespace.addEventType({
browseName: "MyConditionType",
subtypeOf: "ConditionType",
isAbstract: false
});
findEventType
(
UAObjectType | Null
-
eventTypeId
-
namespaceIndex
find an EventType node in the address space
Parameters:
-
eventTypeId
String | NodeId | UAObjectTypethe eventType to find
-
namespaceIndex
Objectthe namespace index of the event to find
Returns:
UAObjectType | Null:
the EventType found or null.
note:
- the method with throw an exception if a node is found that is not a BaseEventType or a subtype of it.
Example:
var evtType = addressSpace.findEventType("AuditEventType");
generateEventId
()
Variant
EventId is generated by the Server to uniquely identify a particular Event Notification.
Returns:
Variant:
dataType: "ByteString"
readValue
(
Variant
-
nodeId
-
selectClause
Parameters:
-
nodeId
NodeId -
selectClause
SimpleAttributeOperand
Returns:
resolveSelectClause
(
NodeId | Null
-
selectClause
Parameters:
-
selectClause
SimpleAttributeOperand
Returns:
NodeId | Null: