diff --git a/config/esp32/components/chip/CMakeLists.txt b/config/esp32/components/chip/CMakeLists.txt index 0ce9cb54933bed..026a17bee075b8 100644 --- a/config/esp32/components/chip/CMakeLists.txt +++ b/config/esp32/components/chip/CMakeLists.txt @@ -185,6 +185,12 @@ if ((CONFIG_BT_ENABLED) AND (CONFIG_ENABLE_CHIPOBLE)) endif() endif() +if (CONFIG_ENABLE_PERSIST_SUBSCRIPTIONS) + chip_gn_arg_append("chip_persist_subscriptions" "true") +else() + chip_gn_arg_append("chip_persist_subscriptions" "false") +endif() + if (CONFIG_ENABLE_ESP32_BLE_CONTROLLER) chip_gn_arg_append("chip_enable_ble_controller" "true") endif() diff --git a/config/esp32/components/chip/Kconfig b/config/esp32/components/chip/Kconfig index ec2ab1a6b26d64..3fa59077f73ece 100644 --- a/config/esp32/components/chip/Kconfig +++ b/config/esp32/components/chip/Kconfig @@ -130,6 +130,13 @@ menu "CHIP Core" help Some device types don't require the read client. Enabling this option may save some flash/ram. + config ENABLE_PERSIST_SUBSCRIPTIONS + bool "Enable persist subscriptions" + default y + help + Enable persist subscriptions to make the device resume the subscriptions from the persist + subscriptions information after reboot. + config BUILD_CHIP_TESTS bool "Build CHIP tests" default n diff --git a/src/platform/device.gni b/src/platform/device.gni index 9afb252ca0b809..dfeec5d73c982d 100644 --- a/src/platform/device.gni +++ b/src/platform/device.gni @@ -108,8 +108,8 @@ declare_args() { # Enable Subscription persistence / resumption for CI and supported platforms if (chip_device_platform == "darwin" || chip_device_platform == "linux" || - chip_device_platform == "esp32" || chip_device_platform == "fake" || - chip_device_platform == "efr32" || chip_device_platform == "SiWx917") { + chip_device_platform == "fake" || chip_device_platform == "efr32" || + chip_device_platform == "SiWx917") { chip_persist_subscriptions = true } else { chip_persist_subscriptions = false