Skip to content

NodeId

NodeId object is an ID to allow a Node to be uniquely identified in a server address space.

Functions

NodeId.newString(identifier_string, namespace)

Creates a new String NodeId instance

Params

  • identifier_string
    • string
    • Node id string identifier
  • namespace

    • number
    • Namespace of the node id.

    Note

    If not using default namespaces, then the namespace must be created with Server.addNamespace()

Returns: NodeId new instance

NodeId.newNumeric(identifier, namespace)

Creates a new Numeric NodeId instance.

Params

  • identifier
    • number
    • Identified of Numeric NodeId
  • namespace

    • number
    • Namespace of the node id

    Note

    If not using default namespaces, then the namespace must be created with Server.addNamespace()

Returns: NodeId new instance

NodeId.newGUID(guid_identifier, namespace)

Creates a new GUID NodeId instance.

Params

  • guid_identifier
    • string
    • GUID identifier string
    • See OPC-UA GUID for more information on the structure
  • namespace

    • number
    • Namespace of the node id

    Note

    If not using default namespaces, then the namespace must be created with Server.addNamespace()

Returns: NodeId new instance

NodeId.newBytestring(bytestring_identifier, namespace)

Creates a new VariableNode instance with a ByteString NodeId.

Params

  • bytestring_identifier
    • string
    • The ByteString identifier
    • See OPC-UA ByteString for more information on bytestrings
  • namespace

    • number
    • Namespace of the node id

    Note

    If not using default namespaces, then the namespace must be created with Server.addNamespace()

Returns: NodeId new instance

Back to top