Skip to content

Commit

Permalink
Merge pull request #63 from sirvar/patch-1
Browse files Browse the repository at this point in the history
Update code samples to require NPM module
  • Loading branch information
mwittig committed Apr 4, 2019
2 parents 95956c5 + e3c2726 commit 12da35a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,8 @@ console.log("Invocation of asynchronous Milight commands done");
### Usage Example for v6 Bridge

```javascript
var Milight = require('../src/index').MilightController;
var commands = require('../src/index').commandsV6;
var Milight = require('node-milight-promise').MilightController;
var commands = require('node-milight-promise').commandsV6;

// Important Notes:
// * Instead of providing the global broadcast address which is the default, you should provide the IP address
Expand Down Expand Up @@ -308,7 +308,7 @@ console.log("Invocation of asynchronous Milight commands done");
### Usage example for Discovery - Legacy bridges, only

```javascript
var discoverBridges = require('../src/index').discoverBridges;
var discoverBridges = require('node-milight-promise').discoverBridges;

discoverBridges().then(function (results) {
console.log(results);
Expand All @@ -318,7 +318,7 @@ discoverBridges().then(function (results) {
### Usage example for Discovery - All bridges

```javascript
var discoverBridges = require('../src/index').discoverBridges;
var discoverBridges = require('node-milight-promise').discoverBridges;

discoverBridges({
type: 'all'
Expand Down

0 comments on commit 12da35a

Please sign in to comment.