Community

Open allianCE for iot stANDard

Authentication for Connecting Cube with Mobius
일엽 안 | 2018-03-14 17:56 | Views 1786


you can make following code. 

replace mqtt.connect part to following code n mqtt_app.js




var mqtt = require('mqtt')

var client  = mqtt.connect(‘mqtt://broker.mqttdashboard.com',{  username: ‘myuser’,  password: ‘mypassword’});

Hi,
How can we specify MQTT broker Username and password in configuration file of nCube-Thyme-Nodejs?