var meshblu = require('meshblu'); var request = require('request'); var conn = meshblu.createConnection({ "uuid": "0d3a53a0-2a0b-11e3-b09c-ff4de847b2cc", "token": "qirqglm6yb1vpldixflopnux4phtcsor" }); conn.on('ready', function(data){ console.log('Ready'); conn.on('message', function(data){ console.log(data); }); conn.status(function (data) { console.log(data); }); conn.message({ "devices": "0d3a53a0-2a0b-11e3-b09c-ff4de847b2cc", "payload": { "hello":"world" } }); });