QOpcUaHistoryData#

This class stores historical data values from a node. 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#

When a request to read history data is being handled, instances of this class are used to store information about which node has been read, its values and the status code. The finished signal of a history read request will return a list of QOpcUaHistoryData objects which can be parsed to review the results of the request.

class PySide6.QtOpcUa.QOpcUaHistoryData#

PySide6.QtOpcUa.QOpcUaHistoryData(other)

PySide6.QtOpcUa.QOpcUaHistoryData(nodeId)

Parameters:

Constructs an invalid history data item.

Constructs a history data item from other.

Constructs a history data item and stores which node it corresponds to.

PySide6.QtOpcUa.QOpcUaHistoryData.addValue(value)#
Parameters:

valuePySide6.QtOpcUa.QOpcUaDataValue

Adds a data value object given by value.

PySide6.QtOpcUa.QOpcUaHistoryData.count()#
Return type:

int

Returns the number of available data value objects.

PySide6.QtOpcUa.QOpcUaHistoryData.nodeId()#
Return type:

str

Returns the nodeId of the node whose data has been stored.

See also

setNodeId()

PySide6.QtOpcUa.QOpcUaHistoryData.result()#
Return type:

.list of QOpcUaDataValue

Returns the list of data value objects which contain the results of the history read request.

PySide6.QtOpcUa.QOpcUaHistoryData.setNodeId(nodeId)#
Parameters:

nodeId – str

Sets the nodeId to nodeId.

See also

nodeId()

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

statusCodeUaStatusCode

Sets the status code to statusCode.

See also

statusCode()

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

UaStatusCode

Returns the status code which indicates if an error occurred while fetching the history data.

See also

setStatusCode()

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

otherPySide6.QtOpcUa.QOpcUaHistoryData

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