What is related to "context" in accessory/service definition ?
Opened this issue · 0 comments
simkard69 commented
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)