Bouke / HAP

Swift implementation of the Homekit Accessory Protocol
https://boukehaarsma.nl/HAP/
MIT License
364 stars 50 forks source link

Added public label to the HAP.Service #162

Open TheMisfit68 opened 11 months ago

TheMisfit68 commented 11 months ago

Helps to distinguish services of the same type that are part of the same accessory

Bouke commented 5 months ago

Can you describe the use-case for this change?

TheMisfit68 commented 5 months ago

I have several custom Accessories that often have more than one service of a particular type, for instance, I have an accessory for my electric car that has two Switches associated with it, one to start charging and one to start the airconditioning. When I handle events in the delegate I needed to be able to differentiate between the two. It's also really handy for debugging purposes.