How to use the node-opcua-service-register-node.UnregisterNodesRequest function in node-opcua-service-register-node

To help you get started, we’ve selected a few node-opcua-service-register-node 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-client / src / client_session.js View on Github external
ClientSession.prototype.unregisterNodes = function(nodesToUnregister,callback) {
    const self = this;
    assert(_.isFunction(callback));
    assert(_.isArray(nodesToUnregister));

    const request = new register_node_service.UnregisterNodesRequest({
        nodesToUnregister: nodesToUnregister.map(resolveNodeId)
    });

    self.performMessageTransaction(request, function (err, response) {
        /* istanbul ignore next */
        if (err) {
            return callback(err);
        }
        assert(response instanceof register_node_service.UnregisterNodesResponse);
        callback(null);
    });
};

node-opcua-service-register-node

pure nodejs OPCUA SDK - module service-register-node

MIT
Latest version published 2 months ago

Package Health Score

83 / 100
Full package analysis