How to use the node-opcua-service-query.QueryFirstRequest function in node-opcua-service-query

To help you get started, we’ve selected a few node-opcua-service-query 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.queryFirst = function (queryFirstRequest, callback) {
    const self = this;
    assert(_.isFunction(callback));

    const request = new query_service.QueryFirstRequest(queryFirstRequest);

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

node-opcua-service-query

pure nodejs OPCUA SDK - module service-query

MIT
Latest version published 1 month ago

Package Health Score

83 / 100
Full package analysis