Skip to content

Commit 5fdee50

Browse files
authored
[ESP32] menuconfig options for groups cluster (project-chip#35394)
* [ESP32] menuconfig options for groups cluster * all-clusters-app has 3 endpoints with group cluster
1 parent 6ade0df commit 5fdee50

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

config/esp32/components/chip/Kconfig

+20
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,26 @@ menu "CHIP Core"
183183
or failure during certification tests. Even if it passes, it may fail
184184
to function properly with actual controllers.
185185

186+
config MAX_GROUP_ENDPOINTS_PER_FABRIC
187+
int "Maximum Group Endpoints per Fabric"
188+
default 1
189+
help
190+
Specifies the maximum number of group endpoints supported per fabric.
191+
192+
config MAX_GROUPS_PER_FABRIC_PER_ENDPOINT
193+
int "Maximum Groups per Fabric per Endpoint"
194+
default 4
195+
help
196+
Specifies the maximum number of groups per fabric for each endpoint.
197+
The value of CHIP_CONFIG_MAX_GROUPS_PER_FABRIC is calculated as:
198+
(MAX_GROUP_ENDPOINTS_PER_FABRIC * MAX_GROUPS_PER_FABRIC_PER_ENDPOINT)
199+
200+
config MAX_GROUP_KEYS_PER_FABRIC
201+
int "Maximum Number of Group Key Sets per Fabric"
202+
default 3
203+
help
204+
Specifies the maximum number of group key sets supported per fabric.
205+
186206
endmenu # "General Options"
187207

188208
menu "Networking Options"

examples/all-clusters-app/esp32/sdkconfig.defaults

+2
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,5 @@ CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH=y
7272

7373
# Increase LwIP IPv6 address number
7474
CONFIG_LWIP_IPV6_NUM_ADDRESSES=6
75+
76+
CONFIG_MAX_GROUP_ENDPOINTS_PER_FABRIC=3

src/platform/ESP32/CHIPPlatformConfig.h

+12
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,18 @@
6969
#define CHIP_CONFIG_MAX_FABRICS CONFIG_MAX_FABRICS
7070
#endif
7171

72+
#ifndef CHIP_CONFIG_MAX_GROUP_ENDPOINTS_PER_FABRIC
73+
#define CHIP_CONFIG_MAX_GROUP_ENDPOINTS_PER_FABRIC CONFIG_MAX_GROUP_ENDPOINTS_PER_FABRIC
74+
#endif
75+
76+
#ifndef CHIP_CONFIG_MAX_GROUPS_PER_FABRIC
77+
#define CHIP_CONFIG_MAX_GROUPS_PER_FABRIC (CONFIG_MAX_GROUPS_PER_FABRIC_PER_ENDPOINT * CHIP_CONFIG_MAX_GROUP_ENDPOINTS_PER_FABRIC)
78+
#endif
79+
80+
#ifndef CHIP_CONFIG_MAX_GROUP_KEYS_PER_FABRIC
81+
#define CHIP_CONFIG_MAX_GROUP_KEYS_PER_FABRIC CONFIG_MAX_GROUP_KEYS_PER_FABRIC
82+
#endif
83+
7284
#ifdef CONFIG_ENABLE_WIFI_STATION
7385
#define CHIP_DEVICE_CONFIG_ENABLE_WIFI_STATION 1
7486
#else

0 commit comments

Comments
 (0)