How to use the node-opcua-service-subscription.MonitoredItemNotification function in node-opcua-service-subscription

To help you get started, we’ve selected a few node-opcua-service-subscription 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 / monitored_item.ts View on Github external
private _makeDataChangeNotification(dataValue: DataValue): MonitoredItemNotification {
    const attributeId = this.itemToMonitor.attributeId;
    dataValue = apply_timestamps(dataValue, this.timestampsToReturn, attributeId);
    return new MonitoredItemNotification({
      clientHandle: this.clientHandle,
      value: dataValue
    });
  }