construct a node Id from a type, a value and a namespace index.
OptionalidentifierType: NodeIdType | nullthe nodeID type
Optionalvalue: string | number | Buffer<ArrayBufferLike>the node id value. The type of Value depends on identifierType.
Optionalnamespace: numberthe index of the related namespace (optional , default value = 0 )
StaticNodeStaticnullStaticresolveStaticsamereturns true if the NodeId is null or empty
convert nodeId to a JSON string. same as NodeId.toString
Optionaloptions: { namespaceArray?: string[] }get the string representation of the nodeID.
Optionaloptions: { addressSpace?: any; namespaceArray?: string[] }OptionaladdressSpace?: any{AddressSpace}
OptionalnamespaceArray?: string[]by default, toString will return the "ns=" representation
const nodeid = new NodeId(NodeIdType.NUMERIC, 123,1);
console.log(nodeid.toString());
>"ns=1;i=123"
This class holds a OPC-UA node identifier.
Nodes are unambiguously identified using a constructed identifier called the NodeId. Some Servers may accept alternative NodeIds in addition to the canonical NodeId represented in this Attribute.
A Server shall persist the NodeId of a Node, that is, it shall not generate new NodeIds when rebooting.