Install Dependencies npm install Change IP Address var client = mqtt.connect('mqtt://your_facebox_ip') Run sample code node index.js