Skip to content

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

Closed
jonsmirl wants to merge 1 commit into
espressif:mainfrom
Lowpan-com:user-cb
Closed

Create user callback on command to allow monitoring in bridge (CON-890)#734
jonsmirl wants to merge 1 commit into
espressif:mainfrom
Lowpan-com:user-cb

Conversation

@jonsmirl

@jonsmirl jonsmirl commented Nov 14, 2023

Copy link
Copy Markdown
Contributor

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
Comment thread components/esp_matter/esp_matter_command.cpp
@@ -0,0 +1,13 @@
--- components/esp_matter/esp_matter_command.cpp

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

I updated to add secondary TLVReader

@wqx6 wqx6 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@dhrishi

dhrishi commented Jan 2, 2024

Copy link
Copy Markdown
Collaborator

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

@dhrishi dhrishi closed this Jan 2, 2024
@shubhamdp

Copy link
Copy Markdown
Collaborator

@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