QOpcUaReadResult#
This class stores the result of a read operation. More…
Synopsis#
Functions#
def
attribute
()def
indexRange
()def
nodeId
()def
serverTimestamp
()def
setAttribute
(attribute)def
setIndexRange
(indexRange)def
setNodeId
(nodeId)def
setServerTimestamp
(serverTimestamp)def
setSourceTimestamp
(sourceTimestamp)def
setStatusCode
(statusCode)def
setValue
(value)def
sourceTimestamp
()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 a readNodeAttributes()
request.
- class PySide6.QtOpcUa.QOpcUaReadResult#
PySide6.QtOpcUa.QOpcUaReadResult(other)
- Parameters:
other –
PySide6.QtOpcUa.QOpcUaReadResult
Default constructs a read result with no parameters set.
Constructs a read result from other
.
- PySide6.QtOpcUa.QOpcUaReadResult.attribute()#
- Return type:
Returns the attribute id.
See also
- PySide6.QtOpcUa.QOpcUaReadResult.indexRange()#
- Return type:
str
Returns the index range.
See also
- PySide6.QtOpcUa.QOpcUaReadResult.nodeId()#
- Return type:
str
Returns the node id.
See also
- PySide6.QtOpcUa.QOpcUaReadResult.serverTimestamp()#
- Return type:
Returns the server timestamp for value()
.
See also
- PySide6.QtOpcUa.QOpcUaReadResult.setAttribute(attribute)#
- Parameters:
attribute –
NodeAttribute
Sets the attribute id to attribute
.
See also
- PySide6.QtOpcUa.QOpcUaReadResult.setIndexRange(indexRange)#
- Parameters:
indexRange – str
Sets the index range to indexRange
.
See also
- PySide6.QtOpcUa.QOpcUaReadResult.setNodeId(nodeId)#
- Parameters:
nodeId – str
Sets the node id to nodeId
.
See also
- PySide6.QtOpcUa.QOpcUaReadResult.setServerTimestamp(serverTimestamp)#
- Parameters:
serverTimestamp –
PySide6.QtCore.QDateTime
Sets the server timestamp to serverTimestamp
.
See also
- PySide6.QtOpcUa.QOpcUaReadResult.setSourceTimestamp(sourceTimestamp)#
- Parameters:
sourceTimestamp –
PySide6.QtCore.QDateTime
Sets the source timestamp to sourceTimestamp
.
See also
- PySide6.QtOpcUa.QOpcUaReadResult.setStatusCode(statusCode)#
- Parameters:
statusCode –
UaStatusCode
Sets the status code to statusCode
.
See also
- PySide6.QtOpcUa.QOpcUaReadResult.setValue(value)#
- Parameters:
value – object
Sets the value to value
.
See also
- PySide6.QtOpcUa.QOpcUaReadResult.sourceTimestamp()#
- Return type:
Returns the source timestamp for value()
.
See also
- PySide6.QtOpcUa.QOpcUaReadResult.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
- PySide6.QtOpcUa.QOpcUaReadResult.value()#
- Return type:
object
Returns the value.
See also