PySide6.QtOpcUa.QOpcUaExpandedNodeId¶
- class QOpcUaExpandedNodeId¶
The OPC UA ExpandedNodeId.
Details
An expanded node id is a node id where the namespace index can be given as index or as a string URI. A list of namespaces and their indices on the server is provided by
namespaceArray().Synopsis¶
Methods¶
def
__init__()def
namespaceUri()def
nodeId()def
__eq__()def
serverIndex()def
setNodeId()def
setServerIndex()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
- __init__()¶
Default constructs an expanded node id with no parameters set.
- __init__(rhs)
- Parameters:
rhs –
QOpcUaExpandedNodeId
Constructs an expanded node id from
rhs.- __init__(nodeId)
- Parameters:
nodeId – str
Constructs an expanded node id from node id string
nodeId.- __init__(namespaceUri, nodeId[, serverIndex=0])
- Parameters:
namespaceUri – str
nodeId – str
serverIndex – int
Constructs an expanded node id from namespace URI
namespaceUri, node id stringnodeIdand server indexserverIndex.See also
- namespaceUri()¶
- Return type:
str
Returns the namespace URI of the node id. If this value is specified, the namespace index in
nodeIdis 0 and must be ignored.See also
- nodeId()¶
- Return type:
str
Returns the node id. If
namespaceUriis specified, the namespace index is invalid.See also
- __eq__(rhs)¶
- Parameters:
rhs –
QOpcUaExpandedNodeId- Return type:
bool
Returns
trueif this expanded node id has the same value asrhs.- serverIndex()¶
- Return type:
int
Returns the index of the server containing the node. This index maps to an entry in the server’s server table. The index of the local server is always
0. All remote servers have indexes greater than0.See also
- setNamespaceUri(namespaceUri)¶
- Parameters:
namespaceUri – str
Sets the namespace URI to
namespaceUri.See also
- setNodeId(nodeId)¶
- Parameters:
nodeId – str
Sets the node id to
nodeId.See also
- setServerIndex(serverIndex)¶
- Parameters:
serverIndex – int
Sets the server index to
serverIndex. The index of the local server is always0. All remote servers have indexes greater than0.See also