QOpcUaReadItem#
This class stores the options for a read operation. More…
Synopsis#
Functions#
def
__ne__
(rhs)def
attribute
()def
indexRange
()def
nodeId
()def
setAttribute
(attribute)def
setIndexRange
(indexRange)def
setNodeId
(nodeId)
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.
See also
- class PySide6.QtOpcUa.QOpcUaReadItem#
PySide6.QtOpcUa.QOpcUaReadItem(other)
PySide6.QtOpcUa.QOpcUaReadItem(nodeId[, attr=QOpcUa.NodeAttribute.Value[, indexRange=””]])
- Parameters
nodeId – str
indexRange – str
other –
PySide6.QtOpcUa.QOpcUaReadItem
attr –
NodeAttribute
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
Returns the node attribute id.
See also
- PySide6.QtOpcUa.QOpcUaReadItem.indexRange()#
- Return type
str
Returns the index range.
See also
- PySide6.QtOpcUa.QOpcUaReadItem.nodeId()#
- Return type
str
Returns the node id.
See also
- PySide6.QtOpcUa.QOpcUaReadItem.__ne__(rhs)#
- Parameters
- 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
attribute –
NodeAttribute
Sets the node attribute id to attribute
.
See also
- PySide6.QtOpcUa.QOpcUaReadItem.setIndexRange(indexRange)#
- Parameters
indexRange – str
Sets the index range to indexRange
.
See also
- PySide6.QtOpcUa.QOpcUaReadItem.setNodeId(nodeId)#
- Parameters
nodeId – str
Sets the node id to nodeId
.
See also