Remove/disable endpoint at runtime

Hi,

I have a doubt regarding the possibility of removing or disabling an endpoint at runtime.

Assuming that we have a device with multiple endpoints, is there a mechanism to disable temporarely or definetely an endpoint from the device itself?

Valerio

Parents
  • Hi again

    Endpoints are added by using the zb_af_register_device_ctx(), which registers a context containing the endpoint. However, there is no "unregister" or "remove" equivalent. So it's not supported to specifically remove them it seems. Removing it from all groups will be the closest you get I guess, as that at least will have it removed.

    I would go for this over suggestion B at least, as that is more of a "brute force" way of doing it, when you knowingly prevent the callback. Option C would be valid though I think, if you find it useful to update the endpoint device like this.

    I'll have to ask internally for more information on how the zb_apsme_remove_all_groups_req_s is forwarded to the stack, as I'm not getting much out of the documentation either.

    Best regards,

    Simon

Reply
  • Hi again

    Endpoints are added by using the zb_af_register_device_ctx(), which registers a context containing the endpoint. However, there is no "unregister" or "remove" equivalent. So it's not supported to specifically remove them it seems. Removing it from all groups will be the closest you get I guess, as that at least will have it removed.

    I would go for this over suggestion B at least, as that is more of a "brute force" way of doing it, when you knowingly prevent the callback. Option C would be valid though I think, if you find it useful to update the endpoint device like this.

    I'll have to ask internally for more information on how the zb_apsme_remove_all_groups_req_s is forwarded to the stack, as I'm not getting much out of the documentation either.

    Best regards,

    Simon

Children
No Data
Related