- class QOpcUaDataValue#
This class stores OPC UA value data and associated metadata. More…
New in version 6.3.
Synopsis#
Methods#
def
__init__()
def
__ne__()
def
setStatusCode()
def
setValue()
def
statusCode()
def
swap()
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.
- __init__()#
Constructs an invalid data value.
- __init__(other)
- Parameters:
other –
QOpcUaDataValue
Constructs a data value from
other
.- __ne__(rhs)#
- Parameters:
rhs –
QOpcUaDataValue
- Return type:
bool
Returns
true
iflhs
is not equal torhs
.- serverPicoseconds()#
- Return type:
int
Returns the number of 10 picosecond intervals for the server timestamp.
See also
Returns the server timestamp for
value()
.See also
- setServerPicoseconds(serverPicoseconds)#
- Parameters:
serverPicoseconds – int
Sets the number of 10 picosecond intervals for the server timestamp to
serverPicoseconds
.See also
Sets the server timestamp to
serverTimestamp
.See also
- setSourcePicoseconds(sourcePicoseconds)#
- Parameters:
sourcePicoseconds – int
Sets the number of 10 picosecond intervals for the source timestamp to
sourcePicoseconds
.See also
Sets the source timestamp to
sourceTimestamp
.See also
- setStatusCode(statusCode)#
- Parameters:
statusCode –
UaStatusCode
Sets the status code to
statusCode
.See also
- setValue(value)#
- Parameters:
value – object
Sets the value to
value
.If this data value is to be used with
QOpcUaBinaryDataEncoding
orQOpcUaGenericStructHandler
, the value’s type must beQOpcUaVariant
.See also
- sourcePicoseconds()#
- Return type:
int
Returns the number of 10 picosecond intervals for the source timestamp.
See also
Returns the source timestamp for
value()
.See also
- 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
- swap(other)#
- Parameters:
other –
QOpcUaDataValue
Swaps this data value instance with
other
. This function is very fast and never fails.- value()#
- Return type:
object
Returns the value.
See also