class QOpcUaHistoryReadResponse#

This class is used for requesting historical data and storing the results. More

Inheritance diagram of PySide6.QtOpcUa.QOpcUaHistoryReadResponse

New in version 6.3.

Synopsis#

Methods#

Signals#

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#

A historical data request to an OPC UA server can be specified by a QOpcUaHistoryReadRawRequest or QOpcUaHistoryReadEventRequest .

Objects of this class and the statuscode of the request are returned in the UaStatusCode serviceResult) or UaStatusCode serviceResult) signal depending on the request type and contain the result of a request.

class State#

This enum specifies the state the response is in.

Constant

Description

QOpcUaHistoryReadResponse.State.Unknown

QOpcUaHistoryReadResponse.State.Reading

QOpcUaHistoryReadResponse.State.Finished

QOpcUaHistoryReadResponse.State.MoreDataAvailable

QOpcUaHistoryReadResponse.State.Error

data()#
Return type:

.list of QOpcUaHistoryData

Returns a list which contains the requested historic data.

events()#
Return type:

.list of QOpcUaHistoryEvent

Returns a list of QOpcUaHistoryEvent containing a list of events for every node to read in the request.

hasMoreData()#
Return type:

bool

Returns true if there are more values available from the historic data request.

readHistoryDataFinished(results, serviceResult)#
Parameters:
  • results – .list of QOpcUaHistoryData

  • serviceResultUaStatusCode

This signal is emitted when a historical data request is finished. It adds to results and sets serviceResult to indicate the state of the result.

readHistoryEventsFinished(results, serviceResult)#
Parameters:
  • results – .list of QOpcUaHistoryEvent

  • serviceResultUaStatusCode

This signal is emitted when a historical event request is finished. The new history data and any previous data is returned in results and serviceResult indicates the state of the result.

readMoreData()#
Return type:

bool

Returns true if a read request for more historic values is successfully dispatched.

releaseContinuationPoints()#
Return type:

bool

Releases the continuation points and sets the request as finished. Returns true if the pending request has been successfully finished; otherwise returns false.

serviceResult()#
Return type:

UaStatusCode

Returns the serviceresult of the historic data request.

state()#
Return type:

State

Returns the current state of historic data request.

stateChanged(state)#
Parameters:

stateState

This signal is emitted when the of a historical data request is changed. It sets state to indicate the state of the change.