-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Scenes] Enabling the scene-cluster (#26186)
* Merge for rebase onto master * Restyled by whitespace * fixed shadowing in InvokeCommand, modified scenes to scenes-server in CMakeList.txt * Regenerated zap files and .matter files for lighting app with Scenes * Modified CMakeList for lighting app to include scene src files * Apply suggestions from code review, swapped checks on groupId != 0, replaced static_cast with to underlying, used StatusIB to convert CHIP_ERROR to status, refactored names of callbacks called from other clusters, got rid of unused functions, fixed integer promotion truncation, remove un-neccessary copies, added checks on sceneHandler failures and assertion on size for static casts. Co-authored-by: Boris Zbarsky <[email protected]> * Removed scenes-tokens.h * removed scenes-token.h for test's BUID.gn * Regenerated zap files * Rework of endpoint scope in progress * Completed refactor of SceneTable to have per endpoint flash storage, adapted test to function with it, needs to add multi-endpoints tests * WIP for Attributes handling, needs to add checks on status for Sets and Gets * Refactored the scenes table and scenes server to be endpoint scoped and removed attribute interface override * Fix multi-endpoint on scenes-server cluster, updated attribute access override, added function to add status to response and response to handler in the event of failure to shortent code * Restyled by whitespace * Restyled by clang-format * Applied changes to build after rebase and regenerated zap files * Restyled by shfmt * Fixed uint16 to uint8 conversion issues in SceneTableImpl * Apply suggestions from code review Co-authored-by: Boris Zbarsky <[email protected]> * Update src/app/clusters/groups-server/groups-server.cpp Co-authored-by: Boris Zbarsky <[email protected]> * Apply suggestions from code review Co-authored-by: Boris Zbarsky <[email protected]> * Removed un-necessary attribute assignation, added attribute dirtying instead. Created method to avoid code dupplication on LastConfiguredId update, addressed low hanging fruits in code style and missing checks * Added missing description for scene storage key allocators and removed un necessary config for max transition time * Restyled by clang-format * Restyled by prettier-json * Shadowing fix * Update src/lib/support/DefaultStorageKeyAllocator.h Co-authored-by: Boris Zbarsky <[email protected]> * Update src/app/clusters/scenes-server/SceneTableImpl.cpp Co-authored-by: Boris Zbarsky <[email protected]> * Add comment on Storage Keys, removed unused variables in comments and moved transition time add to response to after success * Restyled by clang-format * Apply suggestions from code review Co-authored-by: Boris Zbarsky <[email protected]> * Removed un-necessary check on transition time * Restyled by whitespace * Restyled by clang-format * Added missing uint16_t in loop to mMaxScenesPerFabric * Added check on nullptr in TestSceneTable * Moved init to MatterScenesPluginServerInitCallback to allow all-cluster-app to initialize for tests * Update src/app/clusters/scenes-server/scenes-server.cpp Co-authored-by: Boris Zbarsky <[email protected]> * Update src/app/clusters/scenes-server/scenes-server.cpp Co-authored-by: Boris Zbarsky <[email protected]> * Added using for ScenesServer in Matter init callback --------- Co-authored-by: Restyled.io <[email protected]> Co-authored-by: Boris Zbarsky <[email protected]>
- Loading branch information
Showing
53 changed files
with
2,710 additions
and
2,114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.