mirror of
https://github.com/mtan93/homebridge.git
synced 2026-03-08 05:31:55 +00:00
Added call to onRegister function
The onRegister function makes it easier to provide event-based characteristic updates. Supported by the underlying HAP-NodeJS framework.
This commit is contained in:
1
app.js
1
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,
|
||||
|
||||
Reference in New Issue
Block a user