-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Add emberAf functions definition for the new network commissioning cluster #15189
Conversation
…atterNetworkCommissioningPluginServerInitCallback
PR #15189: Size comparison from a35b95a to ed8b330 Decreases (3 builds for esp32, telink)
Full report (3 builds for esp32, telink)
|
@@ -468,3 +468,47 @@ void Instance::OnCommissioningComplete(CHIP_ERROR err) | |||
} // namespace Clusters | |||
} // namespace app | |||
} // namespace chip | |||
|
|||
bool emberAfNetworkCommissioningClusterAddOrUpdateThreadNetworkCallback( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we do something to not generate calls to these at all, since it's a waste of codesize? Followup needed for that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree, but now there are still platforms which don't have full network commissioning driver support, and they need these functions. We could remove the generate calls after all the platforms add the updated network commissioning driver and the network-commissioning-old
is removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is why I said "followup needed".
return false; | ||
} | ||
|
||
void MatterNetworkCommissioningPluginServerInitCallback() {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably go over where the other stubs like this live.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I move this function to callback-stub.cpp?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, these are in src/app/util/util.cpp
around line 240.
@@ -96,8 +96,6 @@ target_sources(app PRIVATE | |||
${CHIP_ROOT}/src/app/clusters/color-control-server/color-control-server.cpp | |||
${CHIP_ROOT}/src/app/clusters/occupancy-sensor-server/occupancy-sensor-server.cpp | |||
${CHIP_ROOT}/src/app/clusters/network-commissioning/network-commissioning.cpp | |||
${CHIP_ROOT}/src/app/clusters/network-commissioning-old/network-commissioning-ember.cpp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A bit confused for the change to telink build file since other files are all under esp32 domain.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
Close this PR since #15184 merged. |
Problem
The updated network commissioning needs definitions of the
emberAf
functions andMatterNetworkCommissioningPluginServerInitCallback
.Change overview
Add the definitions for the new network commissioning cluster
Testing
Tested on ESP32C3 with all-clusters-app, the commissioning works well and the
scannetwork
command also works.