How to use the node-opcua-service-history.HistoryReadValueId function in node-opcua-service-history

To help you get started, we’ve selected a few node-opcua-service-history examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github node-opcua / node-opcua / packages / node-opcua-server / source / server_engine.ts View on Github external
historyReadDetails:
      ReadRawModifiedDetails | ReadEventDetails | ReadProcessedDetails | ReadAtTimeDetails,
    timestampsToReturn: TimestampsToReturn,
    callback: (err: Error | null, results?: HistoryReadResult) => void
  ): void {

    if (timestampsToReturn === TimestampsToReturn.Invalid) {
      callback(null,
        new HistoryReadResult({
          statusCode: StatusCodes.BadTimestampsToReturnInvalid
        }));
      return;
    }
    assert(context instanceof SessionContext);
    this._historyReadSingleNode(context,
      new HistoryReadValueId({
        nodeId
      }), historyReadDetails, timestampsToReturn, callback);
  }