diff --git a/README.md b/README.md index 325b707..16855ae 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,8 @@ MQTT.js mqtt client package with both server and client API's working. Basic Usage: -var mqtt = require('mqtt'); +```javascript +var mqtt   = require('mqtt'); var client = mqtt.connect('mqtt://test.mosquitto.org'); client.subscribe('presence'); @@ -17,8 +18,9 @@ client.on('message', function (topic, message) { }); client.end(); +``` -See: http://www.modern-industry.com/admin/Article/17-using-mqtt-with-meteor for an article on +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