QOpcUaDataValue#
This class stores OPC UA value data and associated metadata. More…
New in version 6.3.
Synopsis#
Functions#
def
serverTimestamp
()def
setServerTimestamp
(serverTimestamp)def
setSourceTimestamp
(sourceTimestamp)def
setStatusCode
(statusCode)def
setValue
(value)def
sourceTimestamp
()def
statusCode
()def
swap
(other)def
value
()
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:
other –
PySide6.QtOpcUa.QOpcUaDataValue
Constructs an invalid data value.
Constructs a data value from other
.
- PySide6.QtOpcUa.QOpcUaDataValue.serverTimestamp()#
- Return type:
Returns the server timestamp for value()
.
See also
- PySide6.QtOpcUa.QOpcUaDataValue.setServerTimestamp(serverTimestamp)#
- Parameters:
serverTimestamp –
PySide6.QtCore.QDateTime
Sets the server timestamp to serverTimestamp
.
See also
- PySide6.QtOpcUa.QOpcUaDataValue.setSourceTimestamp(sourceTimestamp)#
- Parameters:
sourceTimestamp –
PySide6.QtCore.QDateTime
Sets the source timestamp to sourceTimestamp
.
See also
- PySide6.QtOpcUa.QOpcUaDataValue.setStatusCode(statusCode)#
- Parameters:
statusCode –
UaStatusCode
Sets the status code to statusCode
.
See also
- PySide6.QtOpcUa.QOpcUaDataValue.setValue(value)#
- Parameters:
value – object
Sets the value to value
.
See also
- PySide6.QtOpcUa.QOpcUaDataValue.sourceTimestamp()#
- Return type:
Returns the source timestamp for value()
.
See also
- PySide6.QtOpcUa.QOpcUaDataValue.statusCode()#
- Return type:
Returns the status code for this data value. If the status code is not Good
, the value and the timestamps are invalid.
See also
- PySide6.QtOpcUa.QOpcUaDataValue.swap(other)#
- Parameters:
other –
PySide6.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