maximkulkin / esp-homekit-demo

Demo of Apple HomeKit accessory server library
MIT License
805 stars 233 forks source link

ESP8266 Lock Demo Admin Access Only #292

Closed Ammarjeddin closed 4 years ago

Ammarjeddin commented 4 years ago

Is there a way we can include the Access only by admin characteristic to the lock in the Lock demo for esp

maximkulkin commented 4 years ago

I think you can check if client that is executing a characteristic setter is an admin and choose to ignore set command if he’s not. You can use homekit_client_is_admin() for that. Not sure if HomeKit supports showing different permissions to clients based on whether they are admins or not.