Interface ClientSessionReadHistoryService
Hierarchy
-
ClientSessionReadHistoryService
Methods
readAggregateValue
- readAggregateValue(nodesToRead: HistoryReadValueIdOptions[], startTime: DateTime, endTime: DateTime, aggregateFn: AggregateFunction[], processingInterval: number, callback: Callback<HistoryReadResult[]>): void
- readAggregateValue(nodesToRead: HistoryReadValueIdOptions[], startTime: DateTime, endTime: DateTime, aggregateFn: AggregateFunction[], processingInterval: number): Promise<HistoryReadResult[]>
- readAggregateValue(nodeToRead: HistoryReadValueIdOptions, startTime: DateTime, endTime: DateTime, aggregateFn: AggregateFunction, processingInterval: number, callback: Callback<HistoryReadResult>): void
- readAggregateValue(nodeToRead: HistoryReadValueIdOptions, startTime: DateTime, endTime: DateTime, aggregateFn: AggregateFunction, processingInterval: number): Promise<HistoryReadResult>
-
Parameters
-
nodesToRead: HistoryReadValueIdOptions[]
-
-
-
-
processingInterval: number
-
callback: Callback<HistoryReadResult[]>
Returns void
-
Parameters
-
nodesToRead: HistoryReadValueIdOptions[]
-
-
-
-
processingInterval: number
Returns Promise<HistoryReadResult[]>
-
Parameters
-
nodeToRead: HistoryReadValueIdOptions
-
-
-
-
processingInterval: number
-
callback: Callback<HistoryReadResult>
Returns void
-
Parameters
-
nodeToRead: HistoryReadValueIdOptions
-
-
-
-
processingInterval: number
Returns Promise<HistoryReadResult>
readHistoryValue
- readHistoryValue(nodesToRead: NodeIdLike[] | HistoryReadValueIdOptions2[], start: DateTime, end: DateTime, callback: function): void
- readHistoryValue(nodesToRead: NodeIdLike[] | HistoryReadValueIdOptions2[], start: DateTime, end: DateTime): Promise<HistoryReadResult[]>
- readHistoryValue(nodeToRead: NodeIdLike | HistoryReadValueIdOptions2, start: DateTime, end: DateTime, callback: function): void
- readHistoryValue(nodeToRead: NodeIdLike | HistoryReadValueIdOptions2, start: DateTime, end: DateTime): Promise<HistoryReadResult>
-
Parameters
-
-
-
-
callback: function
-
- (err: Error | null, results?: HistoryReadResult[]): void
-
Parameters
-
err: Error | null
-
Optional results: HistoryReadResult[]
Returns void
Returns void
-
Parameters
Returns Promise<HistoryReadResult[]>
-
Parameters
-
-
-
-
callback: function
-
- (err: Error | null, result?: HistoryReadResult): void
-
Parameters
-
err: Error | null
-
Optional result: HistoryReadResult
Returns void
Returns void
-
Parameters
Returns Promise<HistoryReadResult>
readAggregateValue
// es5 session.readAggregateValue( {nodeId: "ns=5;s=Simulation Examples.Functions.Sine1" }, new Date("2015-06-10T09:00:00.000Z"), new Date("2015-06-10T09:01:00.000Z"), AggregateFunction.Average, 3600000, (err,dataValues) => { });
// es6 const dataValues = await session.readAggregateValue( { nodeId: "ns=5;s=Simulation Examples.Functions.Sine1" }, new Date("2015-06-10T09:00:00.000Z"), new Date("2015-06-10T09:01:00.000Z"), AggregateFunction.Average, 3600000);