Skip to content

Instantly share code, notes, and snippets.

@ReidCarlberg
Created February 20, 2014 21:16
Embed
What would you like to do?
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