marabesi / meteor-mqtt

Meteor package for mqtt.js npm module.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Meteor package for MQTT.js npm module.

MQTT.js mqtt client package with both server and client API's working.

Basic Usage:

var mqtt    = require('mqtt');
var client  = mqtt.connect('mqtt://test.mosquitto.org');
 
client.subscribe('presence');
client.publish('presence', 'Hello mqtt');
 
client.on('message', function (topic, message) {
  // message is Buffer 
  console.log(message.toString());
});
 
client.end();

See: http://www.modern-industry.com/articles/17-using-mqtt-with-meteor for an article on how to use with Meteor.

See: http://www.thingstud.io for a cloud service to create UI's for MQTT

See: https://www.npmjs.com/package/mqtt for full API

About

Meteor package for mqtt.js npm module.


Languages

Language:JavaScript 100.0%