High Performance OPC UA Server SDK  1.2.0.193

Access for nodeclass object specific attributes. More...

Functions

ua_node_t ua_object_create_instance (struct ua_nodeid *nodeid, ua_node_t type, const char *browsename, const char *displayname)
 Create an instance of a given objecttype. More...
 
void ua_object_delete_instance (ua_node_t node)
 Delete an instance of any type. More...
 
ua_node_t ua_object_create_folder (struct ua_nodeid *nodeid, ua_node_t parent, const char *name)
 Create a new object node from type folder. More...
 
int ua_object_set_event_notifier (ua_node_t node, uint8_t event_notifier)
 Sets the event_notifier attribute for the given node. More...
 
int ua_object_get_event_notifier (ua_node_t node)
 Returns the event_notifier attribute for the given node. More...
 

Detailed Description

Access for nodeclass object specific attributes.

Function Documentation

ua_node_t ua_object_create_folder ( struct ua_nodeid nodeid,
ua_node_t  parent,
const char *  name 
)

Create a new object node from type folder.

Parameters
nodeidNodeid of the new folder.
parentParent folder of the new folder.
nameBrowsename and displayname of the new folder.
Returns
handle of the new folder node on success, UA_NODE_INVALID on failure.
ua_node_t ua_object_create_instance ( struct ua_nodeid nodeid,
ua_node_t  type,
const char *  browsename,
const char *  displayname 
)

Create an instance of a given objecttype.

The nodeids for the child nodes are generated dynamically and depend on nodeid. If nodeid is a string identifier the new nodes are concatenations of this string with the browsename of the child node. If nodeid is a numeric identifier the nodeid is incremented for each child. Guid identifiers are generated randomly for each new child node. Opaque identifiers are not supported for nodeid.

Parameters
nodeidNodeid the new instance should have. Must not exist yet.
typeThe type of the new instance.
browsenameBrowsename for the new node, no browsename is set if NULL.
displaynameDisplayname for the new node, not displayname is set if NULL.
Returns
The node of the new instance or UA_NODE_INVALID on error.
void ua_object_delete_instance ( ua_node_t  node)

Delete an instance of any type.

Deletes the node node and all its hierachical referenced subnodes and all references from or to these nodes.

Note: If additional nodes were added to the instance these will also be deleted and if there is a hierachical reference to the root node your complete addressspace might be deleted.

int ua_object_get_event_notifier ( ua_node_t  node)

Returns the event_notifier attribute for the given node.

Parameters
nodeNode handle which identifies the node.
Returns
A positive value on success which contains the event_notifier attribute, a negative error code if the operation fails.
int ua_object_set_event_notifier ( ua_node_t  node,
uint8_t  event_notifier 
)

Sets the event_notifier attribute for the given node.

This operation is only allowed for nodes with nodeclass==UA_NODECLASS_OBJECT.

Parameters
nodeNode handle which identifies the node.
event_notifierThis may be a bitwise ORed combination of UA_EVENTNOTIFIER_SUBSCRIBETOEVENTS (1), UA_EVENTNOTIFIER_HISTORYREAD (4) and UA_EVENTNOTIFIER_HISTORYWRITE (8), or simply UA_EVENTNOTIFIER_NONE (0).
Returns
Zero on success, or UA_EBADINVALIDARGUMENT if the node handle or nodeclass is invalid.