QOpcUaDataValue#

This class stores OPC UA value data and associated metadata. More

New in version 6.3.

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#

This class corresponds to the OPC UA DataValue type.

class PySide6.QtOpcUa.QOpcUaDataValue#

PySide6.QtOpcUa.QOpcUaDataValue(other)

Parameters:

otherPySide6.QtOpcUa.QOpcUaDataValue

Constructs an invalid data value.

Constructs a data value from other.

PySide6.QtOpcUa.QOpcUaDataValue.serverTimestamp()#
Return type:

PySide6.QtCore.QDateTime

Returns the server timestamp for value() .

PySide6.QtOpcUa.QOpcUaDataValue.setServerTimestamp(serverTimestamp)#
Parameters:

serverTimestampPySide6.QtCore.QDateTime

Sets the server timestamp to serverTimestamp.

PySide6.QtOpcUa.QOpcUaDataValue.setSourceTimestamp(sourceTimestamp)#
Parameters:

sourceTimestampPySide6.QtCore.QDateTime

Sets the source timestamp to sourceTimestamp.

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

statusCodeUaStatusCode

Sets the status code to statusCode.

See also

statusCode()

PySide6.QtOpcUa.QOpcUaDataValue.setValue(value)#
Parameters:

value – object

Sets the value to value.

See also

value()

PySide6.QtOpcUa.QOpcUaDataValue.sourceTimestamp()#
Return type:

PySide6.QtCore.QDateTime

Returns the source timestamp for value() .

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

UaStatusCode

Returns the status code for this data value. If the status code is not Good , the value and the timestamps are invalid.

See also

setStatusCode()

PySide6.QtOpcUa.QOpcUaDataValue.swap(other)#
Parameters:

otherPySide6.QtOpcUa.QOpcUaDataValue

Swaps this data value instance with other. This function is very fast and never fails.

PySide6.QtOpcUa.QOpcUaDataValue.value()#
Return type:

object

Returns the value.

See also

setValue()