Skip to content

Instantly share code, notes, and snippets.

@ReidCarlberg
Created February 20, 2014 21:16
Show Gist options
  • Save ReidCarlberg/9123347 to your computer and use it in GitHub Desktop.
Save ReidCarlberg/9123347 to your computer and use it in GitHub Desktop.
var hue = require("node-hue-api");
var displayBridges = function(bridge) {
console.log("Hue Bridges Found: " + JSON.stringify(bridge));
};
// --------------------------
// Using a promise
hue.locateBridges().then(displayBridges).done();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment