Yurik72/ESPHap

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

Opened this issue · 0 comments

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)