Skip to content

Commit

Permalink
[nrfconnect] Add kconfig for enabling Read Client
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ArekBalysNordic committed Dec 18, 2023
1 parent 7cbac91 commit 3ac408d
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/nrfconnect/chip-module/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ matter_add_gn_arg_bool ("chip_enable_wifi" CONFIG_WIFI_NR
matter_add_gn_arg_bool ("chip_system_config_provide_statistics" CONFIG_CHIP_STATISTICS)
matter_add_gn_arg_bool ("chip_enable_icd_server" CONFIG_CHIP_ENABLE_ICD_SUPPORT)
matter_add_gn_arg_bool ("chip_enable_factory_data" CONFIG_CHIP_FACTORY_DATA)
matter_add_gn_arg_bool ("chip_enable_read_client" CONFIG_CHIP_ENABLE_READ_CLIENT)

if (CONFIG_CHIP_FACTORY_DATA OR CONFIG_CHIP_FACTORY_DATA_CUSTOM_BACKEND)
matter_add_gn_arg_bool("chip_use_transitional_commissionable_data_provider" FALSE)
Expand Down
8 changes: 8 additions & 0 deletions config/nrfconnect/chip-module/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -273,4 +273,12 @@ config CHIP_OPENTHREAD_JOINER_ENABLED
If disabled, it allows to optimize memory usage even if Thread Joiner
support is enabled.

config CHIP_ENABLE_READ_CLIENT
bool "Enable Read Client in the Interaction Model"
default n
help
Enable support for Read Client in the Interaction Model.
This config can be disabled for device types that do not require Read Client functionality.
Disabling this config can save flash and RAM space.

endif # CHIP
3 changes: 3 additions & 0 deletions examples/light-switch-app/nrfconnect/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,6 @@ CONFIG_USE_SEGGER_RTT=n
# Enable Factory Data feature
CONFIG_CHIP_FACTORY_DATA=y
CONFIG_CHIP_FACTORY_DATA_BUILD=y

# Enable the Read Client for binding Purposes
CONFIG_CHIP_ENABLE_READ_CLIENT=y
3 changes: 3 additions & 0 deletions examples/light-switch-app/nrfconnect/prj_no_dfu.conf
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,6 @@ CONFIG_CHIP_OTA_REQUESTOR=n

# Disable QSPI NOR
CONFIG_CHIP_QSPI_NOR=n

# Enable the Read Client for binding Purposes
CONFIG_CHIP_ENABLE_READ_CLIENT=y
3 changes: 3 additions & 0 deletions examples/light-switch-app/nrfconnect/prj_release.conf
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,6 @@ CONFIG_BOOT_BANNER=n
# Enable Factory Data feature
CONFIG_CHIP_FACTORY_DATA=y
CONFIG_CHIP_FACTORY_DATA_BUILD=y

# Enable the Read Client for binding Purposes
CONFIG_CHIP_ENABLE_READ_CLIENT=y

0 comments on commit 3ac408d

Please sign in to comment.