Skip to content

Commit d95eb1d

Browse files
[nrf fromlist] [nrfconnect] Add kconfig for enabling Read Client
To save some FLASH and RAM memory space we can disable Read Client functionality in nrfconnect samples. This commit adds kconfig to enable or disable Read Client in the Interaction Model.
1 parent d97e091 commit d95eb1d

File tree

9 files changed

+29
-0
lines changed

9 files changed

+29
-0
lines changed

config/nrfconnect/chip-module/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ matter_add_gn_arg_bool ("chip_system_config_provide_statistics" CONFIG_CHIP_ST
138138
matter_add_gn_arg_bool ("chip_enable_icd_server" CONFIG_CHIP_ENABLE_ICD_SUPPORT)
139139
matter_add_gn_arg_bool ("chip_mdns_minimal" CONFIG_WIFI_NRF700X)
140140
matter_add_gn_arg_bool ("chip_mdns_platform" CONFIG_NET_L2_OPENTHREAD)
141+
matter_add_gn_arg_bool ("chip_enable_read_client" CONFIG_CHIP_ENABLE_READ_CLIENT)
141142

142143
if (CONFIG_CHIP_FACTORY_DATA)
143144
matter_add_gn_arg_bool("chip_use_transitional_commissionable_data_provider" FALSE)

config/nrfconnect/chip-module/Kconfig

+7
Original file line numberDiff line numberDiff line change
@@ -273,4 +273,11 @@ config CHIP_OPENTHREAD_JOINER_ENABLED
273273
If disabled, it allows to optimize memory usage even if Thread Joiner
274274
support is enabled.
275275

276+
config CHIP_ENABLE_READ_CLIENT
277+
bool "Enable Read Client in the Interaction Model"
278+
help
279+
Enable support for Read Client in the Interaction Model.
280+
This config can be disabled for device types that do not require Read Client functionality.
281+
Disabling this config can save flash and RAM space.
282+
276283
endif # CHIP

examples/all-clusters-app/nrfconnect/prj.conf

+3
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,6 @@ CONFIG_CHIP_OTA_REQUESTOR=n
4444

4545
# Disable QSPI NOR
4646
CONFIG_CHIP_QSPI_NOR=n
47+
48+
# Enable the Read Client for binding purposes
49+
CONFIG_CHIP_ENABLE_READ_CLIENT=y

examples/all-clusters-app/nrfconnect/prj_dfu.conf

+3
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,6 @@ CONFIG_ASSERT_NO_MSG_INFO=y
4545
# Enable Factory Data feature
4646
CONFIG_CHIP_FACTORY_DATA=y
4747
CONFIG_CHIP_FACTORY_DATA_BUILD=y
48+
49+
# Enable the Read Client for binding purposes
50+
CONFIG_CHIP_ENABLE_READ_CLIENT=y

examples/all-clusters-app/nrfconnect/prj_release.conf

+3
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,6 @@ CONFIG_BOOT_BANNER=n
5252
# Enable Factory Data feature
5353
CONFIG_CHIP_FACTORY_DATA=y
5454
CONFIG_CHIP_FACTORY_DATA_BUILD=y
55+
56+
# Enable the Read Client for binding purposes
57+
CONFIG_CHIP_ENABLE_READ_CLIENT=y

examples/light-switch-app/nrfconnect/prj.conf

+3
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,6 @@ CONFIG_USE_SEGGER_RTT=n
4545
# Enable Factory Data feature
4646
CONFIG_CHIP_FACTORY_DATA=y
4747
CONFIG_CHIP_FACTORY_DATA_BUILD=y
48+
49+
# Enable the Read Client for binding purposes
50+
CONFIG_CHIP_ENABLE_READ_CLIENT=y

examples/light-switch-app/nrfconnect/prj_no_dfu.conf

+3
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,6 @@ CONFIG_CHIP_OTA_REQUESTOR=n
4747

4848
# Disable QSPI NOR
4949
CONFIG_CHIP_QSPI_NOR=n
50+
51+
# Enable the Read Client for binding purposes
52+
CONFIG_CHIP_ENABLE_READ_CLIENT=y

examples/light-switch-app/nrfconnect/prj_release.conf

+3
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,6 @@ CONFIG_BOOT_BANNER=n
5959
# Enable Factory Data feature
6060
CONFIG_CHIP_FACTORY_DATA=y
6161
CONFIG_CHIP_FACTORY_DATA_BUILD=y
62+
63+
# Enable the Read Client for binding purposes
64+
CONFIG_CHIP_ENABLE_READ_CLIENT=y

src/test_driver/nrfconnect/prj.conf

+3
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,6 @@ CONFIG_CHIP_BUILD_TESTS=y
9292
CONFIG_CHIP_ENABLE_DNSSD_SRP=n
9393
CONFIG_CHIP_DEVICE_VENDOR_ID=65521
9494
CONFIG_CHIP_DEVICE_PRODUCT_ID=32768
95+
96+
# Enable the Read Client
97+
CONFIG_CHIP_ENABLE_READ_CLIENT=y

0 commit comments

Comments
 (0)