opcua object

opcua.readFilter(filter)

Reads current raw and aggregated values analog to the client-side function webMI.data.readFilter().

Parameters:
  • filter (Object) – Is used to constrain the requested data. From the filter object only the filter properties address, aggregate, interval and unit are used, all other properties are ignored.

Returns:

Example, read all current aggregated values which use the interval "5 minutes", regardless of the aggregate function:

var filter = {};
filter.address = ["g:AGENT.OBJECTS.MyData.*"];
filter.interval = ["v:5"];
filter.unit = ["v:m"];
var res = opcua.readFilter(filter);
console.log(res);