How to use node-opcua-service-query - 4 common examples

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
self.performMessageTransaction(request, function (err, response) {
        /* istanbul ignore next */
        if (err) {
            return callback(err);
        }
        assert(response instanceof query_service.QueryFirstResponse);
        callback(null, response.results);
    });
};
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);
    });
};
github node-opcua / node-opcua / packages / node-opcua-server / src / opcua_server.js View on Github external
OPCUAServer.prototype._on_QueryFirst = function (message, channel) {
    return g_sendError(channel, message, query_service.QueryFirstResponse, StatusCodes.BadNotImplemented);
};
OPCUAServer.prototype._on_QueryNext = function (message, channel) {
github node-opcua / node-opcua / packages / node-opcua-server / src / opcua_server.js View on Github external
OPCUAServer.prototype._on_QueryNext = function (message, channel) {
    return g_sendError(channel, message, query_service.QueryNextResponse, StatusCodes.BadNotImplemented);
};

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