PySide6.QtOpcUa.QOpcUaWriteResult¶
- class QOpcUaWriteResult¶
This class stores the result of a write operation. More…
Synopsis¶
Methods¶
def
__init__()
def
attribute()
def
indexRange()
def
nodeId()
def
setAttribute()
def
setIndexRange()
def
setNodeId()
def
setStatusCode()
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 awriteNodeAttributes()
request.- __init__()¶
Default constructs a write result with no parameters set.
- __init__(other)
- Parameters:
other –
QOpcUaWriteResult
Constructs a write result from
other
.- attribute()¶
- Return type:
Returns the attribute of the write result.
See also
- indexRange()¶
- Return type:
str
Returns the index range of the write result.
See also
- nodeId()¶
- Return type:
str
Returns the node id of the write result.
See also
- setAttribute(attribute)¶
- Parameters:
attribute –
NodeAttribute
Sets the attribute of the write result to
attribute
.See also
- setIndexRange(indexRange)¶
- Parameters:
indexRange – str
Sets the index range of the write result to
indexRange
.See also
- setNodeId(nodeId)¶
- Parameters:
nodeId – str
Sets the node id of the write result to
nodeId
.See also
- setStatusCode(statusCode)¶
- Parameters:
statusCode –
UaStatusCode
Sets the status code of the write result to
statusCode
.See also
- statusCode()¶
- Return type:
Returns the status code of the write result.
See also