- class QOpcUaReadResult¶
This class stores the result of a read operation. More…
Synopsis¶
Methods¶
def
__init__()
def
attribute()
def
indexRange()
def
nodeId()
def
setAttribute()
def
setIndexRange()
def
setNodeId()
def
setStatusCode()
def
setValue()
def
statusCode()
def
value()
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 value and timestamps which describe when a value was generated by the source and when the server obtained it. It also returns a status code which describes if the value could be read and if not, for what reason the read has failed.
In addition to the data returned by the server, this class also contains the node id, the attribute and the index range from the request to enable a client to match the result with a request.
Objects of this class are returned in the
readNodeAttributesFinished()
signal and contain the result of a read operation that was part of areadNodeAttributes()
request.- __init__()¶
Default constructs a read result with no parameters set.
- __init__(other)
- Parameters:
other –
QOpcUaReadResult
Constructs a read result from
other
.- attribute()¶
- Return type:
Returns the attribute id.
See also
- indexRange()¶
- Return type:
str
Returns the index range.
See also
- nodeId()¶
- Return type:
str
Returns the node id.
See also
Returns the server timestamp for
value()
.See also
- setAttribute(attribute)¶
- Parameters:
attribute –
NodeAttribute
Sets the 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
Sets the server timestamp to
serverTimestamp
.See also
Sets the source timestamp to
sourceTimestamp
.See also
- setStatusCode(statusCode)¶
- Parameters:
statusCode –
UaStatusCode
Sets the status code to
statusCode
.See also
- setValue(value)¶
- Parameters:
value – object
Sets the value to
value
.See also
Returns the source timestamp for
value()
.See also
- statusCode()¶
- Return type:
Returns the status code for this element. If the status code is not
Good
, the value and the timestamps are invalid.See also
- value()¶
- Return type:
object
Returns the value.
See also