Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions config/zephyr/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ config CHIP_DATA_MODEL_CODEDRIVEN
this when the application registers clusters and endpoints at run time
instead of using the ZAP generated data model.

config CHIP_ENABLE_GROUPCAST
bool "Enable groupcast support"
help
Enables Groupcast and auxiliary access control support.

if OPENTHREAD

# See config/common/cmake/Kconfig for full definition
Expand Down
3 changes: 3 additions & 0 deletions examples/all-devices-app/zephyr/Kconfig.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ config CHIP_ENABLE_PAIRING_AUTOSTART
config CHIP_DATA_MODEL_CODEDRIVEN
default y

config CHIP_ENABLE_GROUPCAST
default y

config CHIP_OTA_REQUESTOR
default n
imply STREAM_FLASH
Expand Down
8 changes: 7 additions & 1 deletion examples/all-devices-app/zephyr/include/AppTaskBase.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ CHIP_ERROR AppTaskBase<Derived>::InitPersistence()
SetSafeAttributePersistenceProvider(&mSafeAttributePersistenceProvider);

mInitParams.groupDataProvider = &mGroupDataProvider;
mGroupDataProvider.SetGroupcastEnabled(CHIP_CONFIG_ENABLE_GROUPCAST);
mGroupDataProvider.SetStorageDelegate(mInitParams.persistentStorageDelegate);
mGroupDataProvider.SetSessionKeystore(mInitParams.sessionKeystore);
ReturnErrorOnFailure(mGroupDataProvider.Init());
Expand Down Expand Up @@ -278,7 +279,12 @@ CHIP_ERROR AppTaskBase<Derived>::RegisterDeviceCreators()
template <class Derived>
CHIP_ERROR AppTaskBase<Derived>::InitServer()
{
return Server::GetInstance().Init(mInitParams);
ReturnErrorOnFailure(Server::GetInstance().Init(mInitParams));
return Clusters::Binding::Manager::GetInstance().Init({
.mFabricTable = &Server::GetInstance().GetFabricTable(),
.mCASESessionManager = Server::GetInstance().GetCASESessionManager(),
.mStorage = mInitParams.persistentStorageDelegate,
});
}

template <class Derived>
Expand Down
Loading