WeMo accessory improvements

- Continue searching for WeMo devices until found
- Upgrade wemo lib version
This commit is contained in:
Nick Farina
2015-03-28 10:08:46 -07:00
parent 81980e564f
commit 25800c8fb0
2 changed files with 5 additions and 3 deletions

View File

@@ -25,6 +25,8 @@ WeMoAccessory.prototype = {
}
else {
that.log("Error finding device '" + that.wemoName + "': " + err);
that.log("Continuing search for WeMo device with exact name '" + that.wemoName + "'...");
that.search();
}
});
},
@@ -38,7 +40,7 @@ WeMoAccessory.prototype = {
var binaryState = powerOn ? 1 : 0;
var that = this;
this.log("Setting power state on the '"+this.wemoName+"' to " + binaryState);
this.device.setBinaryState(binaryState, function(err, result) {