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#

Functions#

Signals#

Detailed Description#

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

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

class PySide6.QtOpcUa.QOpcUaHistoryReadResponse#
PySide6.QtOpcUa.QOpcUaHistoryReadResponse.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

PySide6.QtOpcUa.QOpcUaHistoryReadResponse.data()#
Return type

Returns a list which contains the requested historic data.

PySide6.QtOpcUa.QOpcUaHistoryReadResponse.hasMoreData()#
Return type

bool

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

PySide6.QtOpcUa.QOpcUaHistoryReadResponse.readHistoryDataFinished(results, serviceResult)#
Parameters

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.

PySide6.QtOpcUa.QOpcUaHistoryReadResponse.readMoreData()#
Return type

bool

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

PySide6.QtOpcUa.QOpcUaHistoryReadResponse.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.

PySide6.QtOpcUa.QOpcUaHistoryReadResponse.serviceResult()#
Return type

UaStatusCode

Returns the serviceresult of the historic data request.

PySide6.QtOpcUa.QOpcUaHistoryReadResponse.state()#
Return type

State

Returns the current state of historic data request.

PySide6.QtOpcUa.QOpcUaHistoryReadResponse.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.