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

What is related to "context" in accessory/service definition ? #142

Open
simkard69 opened this issue Sep 13, 2023 · 0 comments
Open

What is related to "context" in accessory/service definition ? #142

simkard69 opened this issue Sep 13, 2023 · 0 comments

Comments

@simkard69
Copy link

Hello,

I wanted to know what is expected to be contained as "context" in these functions ?

  • homekit_service_t* hap_add_windowcovering_service(const char* szname, hap_callback cb, void* context)
  • homekit_service_t* hap_add_windowcovering_as_accessory(int acctype, const char* szname, hap_callback cb, void* context)

From documentation, we only have this information :

  • Every callback has the following parameters
  • characteristic
  • value
  • context (callback parameters)
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