Update example plugin

Add comment for service name.
This commit is contained in:
Khaos Tian
2016-11-18 00:33:36 -08:00
committed by GitHub
parent b6cfe3ba7c
commit efc570e5a9

View File

@@ -190,6 +190,7 @@ SamplePlatform.prototype.addAccessory = function(accessoryName) {
// To help restore accessory in configureAccessory() // To help restore accessory in configureAccessory()
// newAccessory.context.something = "Something" // newAccessory.context.something = "Something"
// Make sure you provided a name for service otherwise it may not visible in some HomeKit apps.
newAccessory.addService(Service.Lightbulb, "Test Light") newAccessory.addService(Service.Lightbulb, "Test Light")
.getCharacteristic(Characteristic.On) .getCharacteristic(Characteristic.On)
.on('set', function(value, callback) { .on('set', function(value, callback) {