Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public static create(
subscription: ClientSubscription,
itemToMonitor: ReadValueIdOptions,
monitoringParameters: MonitoringParametersOptions,
timestampsToReturn: TimestampsToReturn = TimestampsToReturn.Neither
): ClientMonitoredItem {
/* istanbul ignore next*/
throw new Error("unimplemented");
}
require("node-opcua-extension-object");
require("node-opcua-service-secure-channel");
const TimestampsToReturn = require("node-opcua-data-value").TimestampsToReturn;
const HistoryReadRequest_Schema = {
name: "HistoryReadRequest",
fields: [
{ name: "requestHeader", fieldType: "RequestHeader"},
{ name: "historyReadDetails", fieldType: "ExtensionObject" /* in fact a "HistoryReadDetails" */,
documentation: "Maximum age of the value to be read in milliseconds"
},
{ name: "timestampsToReturn", fieldType: "TimestampsToReturn",
documentation: "An enumeration that specifies the Timestamps to be returned for each requested Variable Value Attribute.",
defaultValue: TimestampsToReturn.Neither
},
{
name: "releaseContinuationPoints", fieldType: "Boolean"
},
{ name: "nodesToRead", isArray: true, fieldType: "HistoryReadValueId",
documentation: "List of Nodes and their Attributes to read. For each entry in this list, a StatusCode is " +
"returned, and if it indicates success, the Attribute Value is also returned."
}
]
};
exports.HistoryReadRequest_Schema = HistoryReadRequest_Schema;
ReadRawModifiedDetails,
ReadProcessedDetails,
ReadAtTimeDetails,
HistoryUpdateType,
ModificationInfo,
ReadEventDetails,
HistoryReadRequestOptions
} from "node-opcua-types";
import { assert } from "node-opcua-assert";
import { HistoryReadRequest } from "node-opcua-types";
assert(HistoryReadRequest.schema.fields[2].name === "timestampsToReturn");
HistoryReadRequest.schema.fields[2].defaultValue = TimestampsToReturn.Neither;