PySide6.QtOpcUa.QOpcUaExpandedNodeId

class QOpcUaExpandedNodeId

The OPC UA ExpandedNodeId. More

Synopsis

Methods

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

Detailed Description

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() .

__init__()

Default constructs an expanded node id with no parameters set.

__init__(rhs)
Parameters:

rhsQOpcUaExpandedNodeId

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 string nodeId and server index serverIndex.

See also

setServerIndex

namespaceUri()
Return type:

str

Returns the namespace URI of the node id. If this value is specified, the namespace index in nodeId is 0 and must be ignored.

nodeId()
Return type:

str

Returns the node id. If namespaceUri is specified, the namespace index is invalid.

See also

setNodeId()

__eq__(rhs)
Parameters:

rhsQOpcUaExpandedNodeId

Return type:

bool

Returns true if this expanded node id has the same value as rhs.

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 than 0.

See also

setServerIndex()

setNamespaceUri(namespaceUri)
Parameters:

namespaceUri – str

Sets the namespace URI to namespaceUri.

See also

namespaceUri()

setNodeId(nodeId)
Parameters:

nodeId – str

Sets the node id to nodeId.

See also

nodeId()

setServerIndex(serverIndex)
Parameters:

serverIndex – int

Sets the server index to serverIndex. The index of the local server is always 0. All remote servers have indexes greater than 0.

See also

serverIndex()