Skip to content

Create user callback on command to allow monitoring in bridge (CON-890) #734

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Conversation

jonsmirl
Copy link
Contributor

@jonsmirl jonsmirl commented Nov 14, 2023

Create a callback hook to allow a bridge to monitor commands. Does not replace the command, it is an additional monitoring hook to allow inspection of the command parameters.

This is very similar to #35 except this callback is for monitoring and does not stop the existing callback from running. In pull 35 he wanted to replace the callback. I initially started off replacing the callback as described in #704 but then I figured out that I wanted to monitor the command, not replace it. In my case I need to keep the underlying function and then I add on additional operations via the user_cb. PR35 can easily be implemented by adding a set function for the main callback.

@github-actions github-actions bot changed the title Create user callback on command to allow monitoring in bridge Create user callback on command to allow monitoring in bridge (CON-890) Nov 14, 2023
@@ -0,0 +1,13 @@
--- components/esp_matter/esp_matter_command.cpp
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this file committed?

@jonsmirl
Copy link
Contributor Author

I updated to add secondary TLVReader

Copy link
Contributor

@wqx6 wqx6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dhrishi
Copy link
Collaborator

dhrishi commented Jan 2, 2024

This was rebased internally and merged. See here: be12e6a Closing this.

@dhrishi dhrishi closed this Jan 2, 2024
@shubhamdp
Copy link
Contributor

@jonsmirl please check this 113ca64 commit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants