QOpcUaWriteResult#

This class stores the result of a write operation. More

Synopsis#

Functions#

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:

otherPySide6.QtOpcUa.QOpcUaWriteResult

Default constructs a write result with no parameters set.

Constructs a write result from other.

PySide6.QtOpcUa.QOpcUaWriteResult.attribute()#
Return type:

NodeAttribute

Returns the attribute of the write result.

See also

setAttribute()

PySide6.QtOpcUa.QOpcUaWriteResult.indexRange()#
Return type:

str

Returns the index range of the write result.

See also

setIndexRange()

PySide6.QtOpcUa.QOpcUaWriteResult.nodeId()#
Return type:

str

Returns the node id of the write result.

See also

setNodeId()

PySide6.QtOpcUa.QOpcUaWriteResult.setAttribute(attribute)#
Parameters:

attributeNodeAttribute

Sets the attribute of the write result to attribute.

See also

attribute()

PySide6.QtOpcUa.QOpcUaWriteResult.setIndexRange(indexRange)#
Parameters:

indexRange – str

Sets the index range of the write result to indexRange.

See also

indexRange()

PySide6.QtOpcUa.QOpcUaWriteResult.setNodeId(nodeId)#
Parameters:

nodeId – str

Sets the node id of the write result to nodeId.

See also

nodeId()

PySide6.QtOpcUa.QOpcUaWriteResult.setStatusCode(statusCode)#
Parameters:

statusCodeUaStatusCode

Sets the status code of the write result to statusCode.

See also

statusCode()

PySide6.QtOpcUa.QOpcUaWriteResult.statusCode()#
Return type:

UaStatusCode

Returns the status code of the write result.

See also

setStatusCode()