How to use the node-opcua-client.installAlarmMonitoring function in node-opcua-client

To help you get started, we’ve selected a few node-opcua-client 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 / opcua-commander / lib / model / model.ts View on Github external
public async installAlarmMonitoring() {
        if (!this.session) { return; }
        this.clientAlarms = await installAlarmMonitoring(this.session);
        this.clientAlarms.on("alarmChanged", () => {
            this.clientAlarms.purgeUnusedAlarms();
            this.emit("alarmChanged", this.clientAlarms)
        });
    }
github node-opcua / opcua-commander / index.js View on Github external
async function alarmStuff() {
        assert(g_session);
        clientAlarms = await opcua.installAlarmMonitoring(g_session);
        clientAlarms.on("alarmChanged", updateAlarmBox);
    }
    alarmStuff();