Skip to content

Commit

Permalink
[ESP32] menuconfig options for groups cluster (#35394)
Browse files Browse the repository at this point in the history
* [ESP32] menuconfig options for groups cluster

* all-clusters-app has 3 endpoints with group cluster
  • Loading branch information
shubhamdp authored and pull[bot] committed Jan 21, 2025
1 parent fc3d385 commit 1167643
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
20 changes: 20 additions & 0 deletions config/esp32/components/chip/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,26 @@ menu "CHIP Core"
or failure during certification tests. Even if it passes, it may fail
to function properly with actual controllers.

config MAX_GROUP_ENDPOINTS_PER_FABRIC
int "Maximum Group Endpoints per Fabric"
default 1
help
Specifies the maximum number of group endpoints supported per fabric.

config MAX_GROUPS_PER_FABRIC_PER_ENDPOINT
int "Maximum Groups per Fabric per Endpoint"
default 4
help
Specifies the maximum number of groups per fabric for each endpoint.
The value of CHIP_CONFIG_MAX_GROUPS_PER_FABRIC is calculated as:
(MAX_GROUP_ENDPOINTS_PER_FABRIC * MAX_GROUPS_PER_FABRIC_PER_ENDPOINT)

config MAX_GROUP_KEYS_PER_FABRIC
int "Maximum Number of Group Key Sets per Fabric"
default 3
help
Specifies the maximum number of group key sets supported per fabric.

endmenu # "General Options"

menu "Networking Options"
Expand Down
2 changes: 2 additions & 0 deletions examples/all-clusters-app/esp32/sdkconfig.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,5 @@ CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH=y

# Increase LwIP IPv6 address number
CONFIG_LWIP_IPV6_NUM_ADDRESSES=6

CONFIG_MAX_GROUP_ENDPOINTS_PER_FABRIC=3
12 changes: 12 additions & 0 deletions src/platform/ESP32/CHIPPlatformConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,18 @@
#define CHIP_CONFIG_MAX_FABRICS CONFIG_MAX_FABRICS
#endif

#ifndef CHIP_CONFIG_MAX_GROUP_ENDPOINTS_PER_FABRIC
#define CHIP_CONFIG_MAX_GROUP_ENDPOINTS_PER_FABRIC CONFIG_MAX_GROUP_ENDPOINTS_PER_FABRIC
#endif

#ifndef CHIP_CONFIG_MAX_GROUPS_PER_FABRIC
#define CHIP_CONFIG_MAX_GROUPS_PER_FABRIC (CONFIG_MAX_GROUPS_PER_FABRIC_PER_ENDPOINT * CHIP_CONFIG_MAX_GROUP_ENDPOINTS_PER_FABRIC)
#endif

#ifndef CHIP_CONFIG_MAX_GROUP_KEYS_PER_FABRIC
#define CHIP_CONFIG_MAX_GROUP_KEYS_PER_FABRIC CONFIG_MAX_GROUP_KEYS_PER_FABRIC
#endif

#ifdef CONFIG_ENABLE_WIFI_STATION
#define CHIP_DEVICE_CONFIG_ENABLE_WIFI_STATION 1
#else
Expand Down

0 comments on commit 1167643

Please sign in to comment.