hap-java / HAP-Java

Java implementation of the HomeKit Accessory Protocol
MIT License
152 stars 83 forks source link

mark primary service #160

Closed yfre closed 2 years ago

yfre commented 2 years ago

according to HAP spec one service should be marked as primary. this is especially important for accessories with multiple services.

2.3.2.3 Primary Service
Accessories should list one of its services as the primary service. The primary service must match the primary function of the accessory and must also match with the accessory category. An accessory must expose only one primary service from its list of available services.

Signed-off-by: Eugen Freiter freiter@gmx.de