read in the onRead

This commit is contained in:
Jon Maddox
2015-06-24 22:20:12 -04:00
parent 27d18abefe
commit 847f0731c8

1
app.js
View File

@@ -123,6 +123,7 @@ function createHAPServer(name, services) {
//loop through characteristics
for (var k = 0; k < services[j].characteristics.length; k++) {
var options = {
onRead: services[j].characteristics[k].onRead,
type: services[j].characteristics[k].cType,
perms: services[j].characteristics[k].perms,
format: services[j].characteristics[k].format,