From 3737877390bbeb7b588d9270ec30302748773829 Mon Sep 17 00:00:00 2001 From: PSONALl <77670766+PSONALl@users.noreply.github.com> Date: Sat, 18 Feb 2023 02:58:29 +0530 Subject: [PATCH] Configure Commissioning Window Timeout (#25152) --- config/esp32/components/chip/Kconfig | 10 ++++++++++ src/platform/ESP32/CHIPDevicePlatformConfig.h | 1 + 2 files changed, 11 insertions(+) diff --git a/config/esp32/components/chip/Kconfig b/config/esp32/components/chip/Kconfig index 34b2e0fb043345..c5b645bb2db069 100644 --- a/config/esp32/components/chip/Kconfig +++ b/config/esp32/components/chip/Kconfig @@ -879,4 +879,14 @@ menu "CHIP Device Layer" endmenu + menu "Commissioning Window Options" + config CHIP_DISCOVERY_TIMEOUT_SECS + int "Commissioning Window Timeout in seconds" + range 180 900 + default 900 + help + The amount of time (in seconds) after which the CHIP platform will close the Commissioning Window + + endmenu + endmenu diff --git a/src/platform/ESP32/CHIPDevicePlatformConfig.h b/src/platform/ESP32/CHIPDevicePlatformConfig.h index d1d8479c6e71bb..67f033a6391b27 100644 --- a/src/platform/ESP32/CHIPDevicePlatformConfig.h +++ b/src/platform/ESP32/CHIPDevicePlatformConfig.h @@ -96,3 +96,4 @@ #define CHIP_DEVICE_CONFIG_CHIP_COUNTERS_NAMESPACE_PARTITION CONFIG_CHIP_COUNTERS_NAMESPACE_PARTITION_LABEL #define CHIP_DEVICE_CONFIG_CHIP_KVS_NAMESPACE_PARTITION CONFIG_CHIP_KVS_NAMESPACE_PARTITION_LABEL #define CHIP_DEVICE_CONFIG_ENABLE_DEVICE_INSTANCE_INFO_PROVIDER CONFIG_ENABLE_ESP32_DEVICE_INSTANCE_INFO_PROVIDER +#define CHIP_DEVICE_CONFIG_DISCOVERY_TIMEOUT_SECS CONFIG_CHIP_DISCOVERY_TIMEOUT_SECS