QOpcUaDataValue#

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

Inheritance diagram of PySide6.QtOpcUa.QOpcUaDataValue

New in version 6.3.

Synopsis#

Functions#

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()