From 85a2071e05f5a2ff29005b650c0a528f2c4a0dc6 Mon Sep 17 00:00:00 2001 From: Alistair Galbraith Date: Wed, 1 Jul 2015 18:10:34 -0700 Subject: [PATCH] Added call to onRegister function The onRegister function makes it easier to provide event-based characteristic updates. Supported by the underlying HAP-NodeJS framework. --- app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app.js b/app.js index 4f94b23..6b2bd77 100644 --- a/app.js +++ b/app.js @@ -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,