Skip to content
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

[app] Add option to disable Read Client #28050

Merged
merged 2 commits into from
Jul 19, 2023

Conversation

wqx6
Copy link
Contributor

@wqx6 wqx6 commented Jul 19, 2023

The Read Client is not required for some device types. So add an option to disable it for some flash optimization.

Copy link
Contributor

@woody-apple woody-apple left a comment

Choose a reason for hiding this comment

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

This seems a little hard to find, can we document this somewhere?

@mergify mergify bot merged commit a48afe0 into project-chip:master Jul 19, 2023
@@ -1723,7 +1725,7 @@ void InteractionModelEngine::OnFabricRemoved(const FabricTable & fabricTable, Fa

return Loop::Continue;
});

#if CHIP_CONFIG_ENABLE_READ_CLIENT
for (auto * readClient = mpActiveReadClientList; readClient != nullptr; readClient = readClient->GetNextClient())
Copy link
Contributor

Choose a reason for hiding this comment

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

What about actually removing mpActiveReadClientList too? @wqx6

woody-apple added a commit that referenced this pull request Jul 19, 2023
woody-apple added a commit that referenced this pull request Jul 19, 2023
erwinpan1 pushed a commit to erwinpan1/connectedhomeip that referenced this pull request Jul 21, 2023
* Add option to disable Read Client

* Restyled by gn

---------

Co-authored-by: Restyled.io <commits@restyled.io>
erwinpan1 pushed a commit to erwinpan1/connectedhomeip that referenced this pull request Jul 21, 2023
@andy31415
Copy link
Contributor

@wqx6 - why does link time optimization not clean out read client?

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

Successfully merging this pull request may close these issues.

5 participants