How to use the iotagent-node-lib/lib/services/groups/groupService.list function in iotagent-node-lib

To help you get started, we’ve selected a few iotagent-node-lib 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 Atos-Research-and-Innovation / IoTagent-LoRaWAN / lib / iotagent-lora.js View on Github external
function loadServices (callback) {
    winston.info('Loading services from registry');
    confService.list(null, 100, 0, function (err, services) {
        if (err) {
            winston.error('Error', err);
            callback();
        }
        if (services.count > 0 && services.services.length > 0) {
            async.eachSeries(
                services.services,
                registerConfiguration,
                function (err) {
                    if (err) {
                        winston.error('Error loading services', err);
                        return callback(err);
                    } else {
                        return callback();
                    }
                }