Skip to content

Commit

Permalink
adjusted exports and added example
Browse files Browse the repository at this point in the history
  • Loading branch information
Torsten Blindert authored and Torsten Blindert committed Jan 21, 2015
1 parent 1d7a569 commit 74fe5dc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
14 changes: 14 additions & 0 deletions example/simple.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
var Client = require('../index').Client;

var client = new Client('192.168.2.7');

client.getDevice('Westinghouse Fan', function (device) {
device.send('Power Toggle');
});

/*
client.powerDown(function () {
console.log('powered down');
});
*/

6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var Client = require('./lib/Client');

module.exports = Client;
module.exports = {
Client: require('./lib/Client')
};

0 comments on commit 74fe5dc

Please sign in to comment.