Skip to content

Convert CommandHandlerInterface command listing to provide full data #37139

Open
@andy31415

Description

Currently CHI only exposes an "enumerate" command for command IDs (like https://github.com/project-chip/connectedhomeip/blob/master/src/app/CommandHandlerInterface.h#L125)

However this is insufficient as commands have attributes for invoke permissions (several existing ones should be admin) and timed-invoke flags and similar. We need CHI to take full control and return the entire set of "command id + flags + invoke permissions" like defined in https://github.com/project-chip/connectedhomeip/blob/master/src/app/data-model-provider/MetadataTypes.h#L116

This should probably wait for #37127 to be finalized, so that the same structures/builders can be re-used.

Since this will be an API change, the update should be documented in https://github.com/project-chip/connectedhomeip/blob/master/docs/upgrading.md

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions