QOpcUaWriteResult#
This class stores the result of a write operation. More…
Synopsis#
Functions#
def
attribute
()def
indexRange
()def
nodeId
()def
setAttribute
(attribute)def
setIndexRange
(indexRange)def
setNodeId
(nodeId)def
setStatusCode
(statusCode)def
statusCode
()
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 write operation on an OPC UA server returns a status code which describes if the value could be written and if not, for what reason the write has failed.
In addition to the status code 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 writeNodeAttributesFinished()
signal and contain the result of a write operation that was part of a writeNodeAttributes()
request.
- class PySide6.QtOpcUa.QOpcUaWriteResult#
PySide6.QtOpcUa.QOpcUaWriteResult(other)
- Parameters:
Constructs a write result from other
.
- PySide6.QtOpcUa.QOpcUaWriteResult.attribute()#
- Return type:
Returns the attribute of the write result.
See also
- PySide6.QtOpcUa.QOpcUaWriteResult.indexRange()#
- Return type:
str
Returns the index range of the write result.
See also
- PySide6.QtOpcUa.QOpcUaWriteResult.nodeId()#
- Return type:
str
Returns the node id of the write result.
See also
- PySide6.QtOpcUa.QOpcUaWriteResult.setAttribute(attribute)#
- Parameters:
attribute –
NodeAttribute
Sets the attribute of the write result to attribute
.
See also
- PySide6.QtOpcUa.QOpcUaWriteResult.setIndexRange(indexRange)#
- Parameters:
indexRange – str
Sets the index range of the write result to indexRange
.
See also
- PySide6.QtOpcUa.QOpcUaWriteResult.setNodeId(nodeId)#
- Parameters:
nodeId – str
Sets the node id of the write result to nodeId
.
See also
- PySide6.QtOpcUa.QOpcUaWriteResult.setStatusCode(statusCode)#
- Parameters:
statusCode –
UaStatusCode
Sets the status code of the write result to statusCode
.
See also
- PySide6.QtOpcUa.QOpcUaWriteResult.statusCode()#
- Return type:
Returns the status code of the write result.
See also