How to use the node-opcua-service-register-node.RegisterNodesRequest 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.registerNodes = function(nodesToRegister,callback) {
    const self = this;
    assert(_.isFunction(callback));
    assert(_.isArray(nodesToRegister));

    const request = new register_node_service.RegisterNodesRequest({
        nodesToRegister: nodesToRegister.map(resolveNodeId)
    });

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

};

node-opcua-service-register-node

pure nodejs OPCUA SDK - module service-register-node

MIT
Latest version published 2 days ago

Package Health Score

81 / 100
Full package analysis