You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to pass an object instance that can process incoming calls instead of creating global objects
Describe the solution you'd like.
static esp_err_t zb_action_handler(esp_zb_core_action_callback_id_t callback_id, const void* message, void userData*)
user data shall be passed when registering a callback
void esp_zb_core_action_handler_register(esp_zb_core_action_callback_t cb, void userData*);
Describe alternatives you've considered.
No response
Additional context.
No response
The text was updated successfully, but these errors were encountered:
Could you provide a more detailed and concrete application case? I believe the feature doesn’t make much sense. The esp_zb_core_action_handler_register() serves as the interface between ZCL and the application. It is triggered by active behaviors (such as a read attribute request that triggers a read attribute response) and passive behaviors (such as a report attribute from a binding device). Typically, it only needs to be registered once before the stack starts. Even if the void *userData parameter is added, the stack would only maintain the pointer and trigger it whenever any callback_id is activated, which is effectively the same as creating a global object in the application.
Is your feature request related to a problem?
I want to pass an object instance that can process incoming calls instead of creating global objects
Describe the solution you'd like.
static esp_err_t zb_action_handler(esp_zb_core_action_callback_id_t callback_id, const void* message, void userData*)
user data shall be passed when registering a callback
void esp_zb_core_action_handler_register(esp_zb_core_action_callback_t cb, void userData*);
Describe alternatives you've considered.
No response
Additional context.
No response
The text was updated successfully, but these errors were encountered: