Skip to content

NodeId

Canonical path: o6.NodeId

NodeId

OPC UA NodeId: the machine-readable identity of one node.

Every address-space operation ultimately targets a NodeId, which is a namespace index plus a numeric, string, ByteString, or Guid identifier.

Besides the explicit ns=/i=/s=/b=/g= keywords, a NodeId can be parsed from a single string ("i=84", "ns=1;s=Temperature"), built from anything that carries a NodeId, or built from a registered DataType or generated type class to obtain that type's own NodeId. As an o6 extension, the namespace part of a string may also be a namespace shortname ("ns=di;i=1") or URI ("nsu=http://…/UA/DI/;i=1"), optionally amended with scope and version to disambiguate releases.

See Address & Identity Types.

Attributes

ns property

ns

The namespace, as a NamespaceModule.

Falls back to the plain numeric index when no namespace is registered under it, so nodeId.ns.uri and nodeId.ns.version are available for every loaded namespace.

id property

id

The identifier part, in whichever of the four forms it uses.

Functions

__init__

__init__() -> None
__init__(numericNs0Id: int) -> None
__init__(parseStr: str) -> None
__init__(hasNodeId: HasNodeId) -> None
__init__(registeredType: type[Any]) -> None
__init__(other: NodeId) -> None
__init__(expandedNodeId: ExpandedNodeId) -> None
__init__(nop: None) -> None
__init__(*, ns: int = 0, i: int) -> None
__init__(*, ns: int = 0, s: str) -> None
__init__(*, ns: int = 0, b: bytes) -> None
__init__(*, ns: int = 0, g: UUID) -> None
__init__(*args, **kwargs)