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... | |
Access for nodeclass object specific attributes.
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.
nodeid | Nodeid of the new folder. |
parent | Parent folder of the new folder. |
name | Browsename and displayname of the new folder. |
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
.
nodeid | Nodeid the new instance should have. Must not exist yet. |
type | The type of the new instance. |
browsename | Browsename for the new node, no browsename is set if NULL. |
displayname | Displayname for the new node, not displayname is set if NULL. |
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.
node | Node handle which identifies the node. |
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.
node | Node handle which identifies the node. |
event_notifier | This 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). |