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 - QOpcUaHistoryReadRawRequestor- 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 - QOpcUaHistoryEventcontaining a list of events for every node to read in the request.- hasMoreData()¶
- Return type:
- bool 
 
 - Returns - trueif 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 - resultsand sets- serviceResultto 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 - resultsand- serviceResultindicates the state of the result.- See also - readMoreData()¶
- Return type:
- bool 
 
 - Returns - trueif 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 - trueif 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 - stateto indicate the state of the change.