-
-
Notifications
You must be signed in to change notification settings - Fork 627
Description
Hi KhaosT,
I would like to add more accessories to the hub. Could you give some tips on how to achieve this?
I've tried a couple of this and concluded that the target port for accessories need to be 2 apart to account for the read and write (+1) port. Besides this, my guess is that the serial numbers have to be unique.
Are these assumptions correct? Are there any other things I should keep in mind? Please note that I'm quite new to NodeJS etc.
With my try now I get the following error after I try to add a second accessory in the HomeKitDemo app.
buffer.js:188
throw new TypeError('First argument needs to be a number, ' +
^
TypeError: First argument needs to be a number, array or string.
at new Buffer (buffer.js:188:15)
at Buffer (buffer.js:158:12)
at Object.processPairStepFive (/home/xbian/HAP-NodeJS/Server.js:319:27)
at Object.processPairStepFour (/home/xbian/HAP-NodeJS/Server.js:303:9)
at Object.processPairStepThree (/home/xbian/HAP-NodeJS/Server.js:286:8)
at Object.processPairSequence (/home/xbian/HAP-NodeJS/Server.js:221:11)
at IncomingMessage. (/home/xbian/HAP-NodeJS/Server.js:38:17)
at IncomingMessage.emit (events.js:95:17)
at IncomingMessage. (_stream_readable.js:764:14)
at IncomingMessage.emit (events.js:92:17)
After this I have to restore HomeKit on my phone to get the first accessory working again.
Hopefully you can give me some pointers in the right direction. Thanks again!
Roy