QOpcUaReadItem#

This class stores the options for a read operation. More

Synopsis#

Functions#

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#

A read operation on an OPC UA server returns the entire value or a certain index range of the value of an attribute of a node on the server. This class contains the necessary information for the backend to make a read request to the server.

One or multiple objects of this class make up the request of a readNodeAttributes() operation.

class PySide6.QtOpcUa.QOpcUaReadItem#

PySide6.QtOpcUa.QOpcUaReadItem(other)

PySide6.QtOpcUa.QOpcUaReadItem(nodeId[, attr=QOpcUa.NodeAttribute.Value[, indexRange=””]])

Parameters:

Default constructs a read item with no parameters set.

Constructs a read item from other.

Constructs a read item for the index range indexRange of the attribute attr of node nodeId.

PySide6.QtOpcUa.QOpcUaReadItem.attribute()#
Return type:

NodeAttribute

Returns the node attribute id.

See also

setAttribute()

PySide6.QtOpcUa.QOpcUaReadItem.indexRange()#
Return type:

str

Returns the index range.

See also

setIndexRange()

PySide6.QtOpcUa.QOpcUaReadItem.nodeId()#
Return type:

str

Returns the node id.

See also

setNodeId()

PySide6.QtOpcUa.QOpcUaReadItem.__ne__(rhs)#
Parameters:

rhsPySide6.QtOpcUa.QOpcUaReadItem

Return type:

bool

Returns true if lhs is not equal to rhs; otherwise returns false.

Two read items are considered not equal if their nodeId, attribute or indexRange are not equal.

PySide6.QtOpcUa.QOpcUaReadItem.setAttribute(attribute)#
Parameters:

attributeNodeAttribute

Sets the node attribute id to attribute.

See also

attribute()

PySide6.QtOpcUa.QOpcUaReadItem.setIndexRange(indexRange)#
Parameters:

indexRange – str

Sets the index range to indexRange.

See also

indexRange()

PySide6.QtOpcUa.QOpcUaReadItem.setNodeId(nodeId)#
Parameters:

nodeId – str

Sets the node id to nodeId.

See also

nodeId()