From aa3b21eab20e4cd78eca15ebbbc970cf1ee5ad1f Mon Sep 17 00:00:00 2001 From: Sergei Lissianoi <54454955+selissia@users.noreply.github.com> Date: Tue, 12 Jul 2022 09:27:07 -0400 Subject: [PATCH] [OTA] Set MRP Active Retry interval for ota-provider-app on Linux (#20570) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Test added march 8 (#15957) * Added new manual scripts * Added Auto generated File * [OTA] Fix OTARequestorDriverImpl inclusion (#15981) * Regen to fix CI failures (#15990) * [ota] Store Default OTA Providers in flash (#15970) * [ota] Store Default OTA Providers in flash Store Default OTA Providers in flash each time the attribute is modified and load it back on the application startup. * Restyled by clang-format * Fix build and reduce flash usage Co-authored-by: Restyled.io * Set MRP Active Retry interval in the Linux ota-provider-app config * Remove merge artifacts * Restyled by whitespace Co-authored-by: kowsisoundhar12 <57476670+kowsisoundhar12@users.noreply.github.com> Co-authored-by: Carol Yang Co-authored-by: Boris Zbarsky Co-authored-by: Damian Królik <66667989+Damian-Nordic@users.noreply.github.com> Co-authored-by: Restyled.io --- .../linux/include/CHIPProjectAppConfig.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/examples/ota-provider-app/linux/include/CHIPProjectAppConfig.h b/examples/ota-provider-app/linux/include/CHIPProjectAppConfig.h index b6c15f4c98230e..d5a80499d4c94b 100644 --- a/examples/ota-provider-app/linux/include/CHIPProjectAppConfig.h +++ b/examples/ota-provider-app/linux/include/CHIPProjectAppConfig.h @@ -32,3 +32,16 @@ // Allows app options (ports) to be configured on launch of app #define CHIP_DEVICE_ENABLE_PORT_PARAMS 1 + +/** + * @def CHIP_CONFIG_MRP_LOCAL_ACTIVE_RETRY_INTERVAL + * + * @brief + * Active retransmit interval, or time to wait before retransmission after + * subsequent failures in milliseconds. + * + * This is the default value, that might be adjusted by end device depending on its + * needs (e.g. sleeping period) using Service Discovery TXT record CRA key. + * + */ +#define CHIP_CONFIG_MRP_LOCAL_ACTIVE_RETRY_INTERVAL (2000_ms32)