iotagent-json icon indicating copy to clipboard operation
iotagent-json copied to clipboard

[DOC] Info about cmd client

Open XavierVal opened this issue 9 years ago • 0 comments

Under https://github.com/telefonicaid/iotagent-mqtt#-command-line-client please add that is needed a config file called "client-config.js" to use de CMD client with containing the basic config needed:

var config = {};

config.mqtt = {
    host: 'localhost',
    port: 1883,
    options: {
        keepalive: 0,
        connectTimeout: 60 * 60 * 1000
    }
};

config.device = {
    id: 'myDeviceId',
    apikey: '1234'
}

module.exports = config;

XavierVal avatar Jan 14 '16 12:01 XavierVal