Skip to content

No API to override command callback (CON-853) #704

@jonsmirl

Description

@jonsmirl

Attributes have:

esp_err_t set_override_callback(attribute_t *attribute, callback_t callback)

There is no parallel API for commands.

When implementing a bridge you have to be able to override the commands too.

When fixing this, consider if you need two callbacks (original and override) or if the new callback could simply replace the old one saving memory. If you replace the old one be sure and cleanup all of the previously allocated memory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions