Merge pull request #52 from alistairg/master

Added call to onRegister function
This commit is contained in:
Nick Farina
2015-07-01 19:51:53 -07:00

1
app.js
View File

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