class QOpcUaReadItem

This class stores the options for a read operation. 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

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.

__init__()

Default constructs a read item with no parameters set.

__init__(other)
Parameters:

otherQOpcUaReadItem

Constructs a read item from other.

__init__(nodeId[, attr=QOpcUa.NodeAttribute.Value[, indexRange=""]])
Parameters:

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

attribute()
Return type:

NodeAttribute

Returns the node attribute id.

See also

setAttribute()

indexRange()
Return type:

str

Returns the index range.

See also

setIndexRange()

nodeId()
Return type:

str

Returns the node id.

See also

setNodeId()

__ne__(rhs)
Parameters:

rhsQOpcUaReadItem

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.

setAttribute(attribute)
Parameters:

attributeNodeAttribute

Sets the node attribute id to attribute.

See also

attribute()

setIndexRange(indexRange)
Parameters:

indexRange – str

Sets the index range to indexRange.

See also

indexRange()

setNodeId(nodeId)
Parameters:

nodeId – str

Sets the node id to nodeId.

See also

nodeId()