-
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
Fix EP0 in dynamic bridge app #23179
Fix EP0 in dynamic bridge app #23179
Conversation
Currently this conflicts with EP0 Descriptor clusters, we register an override that can't provide EP0 values and it vectors into that
Since this is really just about the descriptor cluster, we shouldn't really be over-riding the existing impl in the SDK, since that 'just works' as long as the right cluster metdata tables are provided at endpoint registration time. Talked with @achaulk-goog, he's going to fix up the PR to ensure the descriptor cluster is present in all dynamic endpoints at endpoint registration time in the 'metadata tables', but stop short of actually registering an attribute access interface override. |
PR #23179: Size comparison from ac19e88 to 772b2a3 Decreases (1 build for bl702)
Full report (5 builds for bl702, mbed, nrfconnect)
|
remove constant
PR #23179: Size comparison from ac19e88 to f653f3c Decreases (5 builds for bl702, telink)
Full report (13 builds for bl702, k32w, linux, mbed, nrfconnect, telink)
|
PR #23179: Size comparison from ac19e88 to baf1b28 Increases (14 builds for bl602, bl702, efr32, esp32, linux, psoc6)
Decreases (11 builds for bl702, efr32, esp32, nrfconnect, psoc6, telink)
Full report (31 builds for bl602, bl702, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
|
@@ -17,12 +17,27 @@ | |||
* limitations under the License. | |||
*/ | |||
|
|||
#include <app-common/zap-generated/af-structs.h> | |||
#include <app-common/zap-generated/attribute-id.h> | |||
#include <app-common/zap-generated/cluster-id.h> |
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 is just right. We should not be including code-generated files from common library code.
DECLARE_DYNAMIC_ATTRIBUTE(ZCL_SERVER_LIST_ATTRIBUTE_ID, ARRAY, kDescriptorAttributeArraySize, 0), /* server list */ | ||
DECLARE_DYNAMIC_ATTRIBUTE(ZCL_CLIENT_LIST_ATTRIBUTE_ID, ARRAY, kDescriptorAttributeArraySize, 0), /* client list */ | ||
DECLARE_DYNAMIC_ATTRIBUTE(ZCL_PARTS_LIST_ATTRIBUTE_ID, ARRAY, kDescriptorAttributeArraySize, 0), /* parts list */ | ||
DECLARE_DYNAMIC_ATTRIBUTE_LIST_END(); |
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.
There must be a better solution that hand-crafting these.
Currently this conflicts with EP0 Descriptor clusters, we register an override that can't provide EP0 values and it vectors into that causing commissioning failures