class QOpcUaWriteResult#

This class stores the result of a write operation. More

Synopsis#

Methods#

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.

__init__()#

Default constructs a write result with no parameters set.

__init__(other)
Parameters:

otherQOpcUaWriteResult

Constructs a write result from other.

attribute()#
Return type:

NodeAttribute

Returns the attribute of the write result.

See also

setAttribute()

indexRange()#
Return type:

str

Returns the index range of the write result.

See also

setIndexRange()

nodeId()#
Return type:

str

Returns the node id of the write result.

See also

setNodeId()

setAttribute(attribute)#
Parameters:

attributeNodeAttribute

Sets the attribute of the write result to attribute.

See also

attribute()

setIndexRange(indexRange)#
Parameters:

indexRange – str

Sets the index range of the write result to indexRange.

See also

indexRange()

setNodeId(nodeId)#
Parameters:

nodeId – str

Sets the node id of the write result to nodeId.

See also

nodeId()

setStatusCode(statusCode)#
Parameters:

statusCodeUaStatusCode

Sets the status code of the write result to statusCode.

See also

statusCode()

statusCode()#
Return type:

UaStatusCode

Returns the status code of the write result.

See also

setStatusCode()