This commit is contained in:
Jon Maddox
2015-06-25 02:01:01 -04:00
parent b147a26738
commit 5e89bbe74d

View File

@@ -208,7 +208,9 @@ WinkAccessory.prototype = {
designedMaxLength: 255 designedMaxLength: 255
},{ },{
cType: types.POWER_STATE_CTYPE, cType: types.POWER_STATE_CTYPE,
onUpdate: function(value) { that.setPowerState(value); }, onUpdate: function(value) {
that.setPowerState(value);
},
onRead: function(callback) { onRead: function(callback) {
that.getPowerState(function(powerState){ that.getPowerState(function(powerState){
callback(powerState); callback(powerState);
@@ -223,7 +225,9 @@ WinkAccessory.prototype = {
designedMaxLength: 1 designedMaxLength: 1
},{ },{
cType: types.BRIGHTNESS_CTYPE, cType: types.BRIGHTNESS_CTYPE,
onUpdate: function(value) { that.setBrightness(value); }, onUpdate: function(value) {
that.setBrightness(value);
},
onRead: function(callback) { onRead: function(callback) {
that.getBrightness(function(level){ that.getBrightness(function(level){
callback(level); callback(level);