CVBpy 14.0
NodeID Class Reference

Represents an OPCUA node ID node. More...

Inherits object.

Public Member Functions

cvb.opcua.NodeID create (int namespace_index, Union[int, str] identifier)
 Creates an OPCUA node ID based on the given namespace and identifier. More...
 
cvb.opcua.NodeID create_namespace0 (int namespace0_node_id)
 Creates an OPCUA node ID based on a pre-defined namespace 0 value. More...
 

Properties

 identifier = property
 Union[str, int]: Gets the identifier. More...
 
 namespace_index = property
 int: Gets the namespace index. More...
 
 type = property
 int: Gets the type of this node ID (see cvb.opcua.NodeIDType).
 

Detailed Description

Represents an OPCUA node ID node.

It provides a unique identifier that can be tagged with an OPCUA node, i.e. they can help with node creation, addition to servers, retrieving from servers etc. OPCUA node IDs are available for various types.

Member Function Documentation

◆ create()

cvb.opcua.NodeID create ( int  namespace_index,
Union[int, str]  identifier 
)

Creates an OPCUA node ID based on the given namespace and identifier.

Parameters

namespace_index : int Index of the desired namespace.

identifier : Union[int, str] An identifier as a source.

Returns

cvb.opcua.NodeID The node ID object.

◆ create_namespace0()

cvb.opcua.NodeID create_namespace0 ( int  namespace0_node_id)

Creates an OPCUA node ID based on a pre-defined namespace 0 value.

In contrast to the NodeID.create method, this version creates a node ID in a pre-defined namespace.

Parameters

namespace0_node_id : int Namespace0 node ID (see cvb.opcua.Namespace0NodeID).

Returns

cvb.opcua.NodeID The node ID object.

Property Documentation

◆ identifier

identifier = property
static

Union[str, int]: Gets the identifier.

For determining its type, read a value by calling cvb.opcua.NodeID.type.

◆ namespace_index

namespace_index = property
static

int: Gets the namespace index.

A namespace index is an index which this node ID is associated with.