Closed hn-nguyen closed 5 years ago
What will you do if user will unpair device? Will your accessory stop doing its primary function until another pairing?
Yes, that is a good idea as it’s inutile working without notification to user. In such a case I think that a callback when unpairing is also wanted.
You should be able to track some internal state of homekit through a new event notifications. Check out led_status example.
I wonder if there exists some
callback
to let user know when the accessoire is ready, such as pairing process has been successfully done, ..This callback is really helpful to initialize other tasks, for example, creating a task to read PIR status, ... These tasks cannot be started at beginning as they will take memory, then, there exists very less memory for homekit paring.