Variable Node
OPC-UA Variable Node implementation. Derived from Node.
Functions
VariableNode.new(node_id, node_name, parent_node, value, access_level)
Creates a new VariableNode instance
Params
- node_id
NodeId- The NodeId of the variable node
- node_name
string- Name of the new node
- parent_node
NodeId- The NodeId of the parent node
- value
Variant- The variant object that defines the variable node's value and datatype.
- access_level
number- Indicates how the value can be accessed. See AccessLevel for more information
Returns: VariableNode new instance
Methods
VariableNode:updateValue()
Updates the nodes value to its variant's value.
Params
Returns: boolean indicates the success of updating the value