espressif / esp-apple-homekit-adk

This is a port for Apple's Open Source HomeKit ADK
617 stars 64 forks source link

How to serve multiple accessories? #17

Closed whymidnight closed 3 years ago

whymidnight commented 3 years ago

In the Lightbulb example only covers one accessory.

I have a single ESP32 that controls 8 GPIO pins that I want to operate as independent accessories.

Would this be possible?

skanico commented 3 years ago

Yes it is possible. You can see examples here

shahpiyushv commented 3 years ago

@skanico thanks for a pointer to the example. Meanwhile @whymidnight, Apple general expects these to be services on the same accessory as these are co-located. But since this may not be an end product, it's fine :)

Meanwhile, have you checked out our other SDK, the esp-homekit-sdk ? It is our own implementation with a different set of APIs. We have multiple examples there, including bridges.

whymidnight commented 3 years ago

The esp-homekit-sdk is the way to go for this. Thank you @shahpiyushv.