PySide6.QtOpcUa.QOpcUaHistoryReadResponse¶
- class QOpcUaHistoryReadResponse¶
This class is used for requesting historical data and storing the results. More…
Added in version 6.3.
Synopsis¶
Methods¶
def
data()
def
events()
def
hasMoreData()
def
readMoreData()
def
serviceResult()
def
state()
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
orQOpcUaHistoryReadEventRequest
.Objects of this class and the statuscode of the request are returned in the
UaStatusCode serviceResult)
orUaStatusCode 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
serviceResult –
UaStatusCode
This signal is emitted when a historical data request is finished. It adds to
results
and setsserviceResult
to indicate the state of the result.See also
- readHistoryEventsFinished(results, serviceResult)¶
- Parameters:
results – .list of QOpcUaHistoryEvent
serviceResult –
UaStatusCode
This signal is emitted when a historical event request is finished. The new history data and any previous data is returned in
results
andserviceResult
indicates the state of the result.See also
- 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:
Returns the serviceresult of the historic data request.
Returns the current state of historic data request.
This signal is emitted when the of a historical data request is changed. It sets
state
to indicate the state of the change.