Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Ready Event? #406

Open
jpasqua opened this issue Nov 10, 2020 · 0 comments
Open

Question: Ready Event? #406

jpasqua opened this issue Nov 10, 2020 · 0 comments

Comments

@jpasqua
Copy link

jpasqua commented Nov 10, 2020

Sorry if this is obvious, but I haven't found a way to know when the device is "ready". For example, in the button example, after the device boots, after a short period of time button presses will be acknowledged in the monitor when the associated printf("single press\n"); is executed. However, no configured action will take place (e.g. turning on a light). After a longer period of time elapses, a button press will actually trigger the associated action. In the mean time a variety of events have occurred:; e.g.:

>>> HomeKit: [Client 6] Update Characteristics
>>> HomeKit: [Client 6] Get Characteristics
>>> HomeKit: [Client 4] Update Characteristics
>>> HomeKit: [Client 4] Update Characteristics
>>> HomeKit: [Client 6] Update Characteristics
>>> HomeKit: Got new client connection: 4 from 192.168.1.155
>>> HomeKit: [Client 4] Pair Verify Step 1/2
>>> HomeKit: [Client 4] Pair Verify Step 2/2
>>> HomeKit: [Client 4] Found pairing with A5EB9C70-54E5-475E-A124-336E45AACF07
>>> HomeKit: [Client 4] Verification successful, secure session established
>>> HomeKit: [Client 4] Get Accessories
>>> HomeKit: Got new client connection: 5 from 192.168.1.128
...

My question is, is there some callback or state that the button code can use to determine that presses will now be acted upon? I have registered a homekit_event_handler callback, but none of those events seems to be definitive.

TIA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant