- class QOpcUaReadItem#
This class stores the options for a read operation. More…
Synopsis#
Methods#
def
__init__()
def
attribute()
def
indexRange()
def
nodeId()
def
__ne__()
def
setAttribute()
def
setIndexRange()
def
setNodeId()
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
- __init__()#
Default constructs a read item with no parameters set.
- __init__(other)
- Parameters:
other –
QOpcUaReadItem
Constructs a read item from
other
.- __init__(nodeId[, attr=QOpcUa.NodeAttribute.Value[, indexRange=""]])
- Parameters:
nodeId – str
attr –
NodeAttribute
indexRange – str
Constructs a read item for the index range
indexRange
of the attributeattr
of nodenodeId
.- attribute()#
- Return type:
Returns the node attribute id.
See also
- indexRange()#
- Return type:
str
Returns the index range.
See also
- nodeId()#
- Return type:
str
Returns the node id.
See also
- __ne__(rhs)#
- Parameters:
rhs –
QOpcUaReadItem
- Return type:
bool
Returns
true
iflhs
is not equal torhs
; otherwise returnsfalse
.Two read items are considered not equal if their
nodeId
,attribute
orindexRange
are not equal.- setAttribute(attribute)#
- Parameters:
attribute –
NodeAttribute
Sets the node attribute id to
attribute
.See also
- setIndexRange(indexRange)#
- Parameters:
indexRange – str
Sets the index range to
indexRange
.See also
- setNodeId(nodeId)#
- Parameters:
nodeId – str
Sets the node id to
nodeId
.See also