QOpcUaReadItem#
This class stores the options for a read operation. More…
Synopsis#
Functions#
def
attribute
()def
indexRange
()def
nodeId
()def
__ne__
(rhs)def
setAttribute
(attribute)def
setIndexRange
(indexRange)def
setNodeId
(nodeId)
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.
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
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:
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