MCPcopy Create free account
hub / github.com/FreeOpcUa/python-opcua / history_read

Method history_read

opcua/common/node.py:514–529  ·  view source on GitHub ↗

Read raw history of a node, low-level function result code from server is checked and an exception is raised in case of error

(self, details)

Source from the content-addressed store, hash-verified

512 return result.HistoryData.DataValues
513
514 def history_read(self, details):
515 """
516 Read raw history of a node, low-level function
517 result code from server is checked and an exception is raised in case of error
518 """
519 valueid = ua.HistoryReadValueId()
520 valueid.NodeId = self.nodeid
521 valueid.IndexRange = ''
522
523 params = ua.HistoryReadParameters()
524 params.HistoryReadDetails = details
525 params.TimestampsToReturn = ua.TimestampsToReturn.Both
526 params.ReleaseContinuationPoints = False
527 params.NodesToRead.append(valueid)
528 result = self.server.history_read(params)[0]
529 return result
530
531 def read_event_history(self, starttime=None, endtime=None, numvalues=0, evtypes=ua.ObjectIds.BaseEventType):
532 """

Callers 2

read_raw_historyMethod · 0.95
history_read_eventsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected