From 10569061acf60f092dbd8c5b9eefda49e31c68e8 Mon Sep 17 00:00:00 2001 From: Sharad Binjola <31142146+sharadb-amazon@users.noreply.github.com> Date: Fri, 10 Mar 2023 18:14:27 -0800 Subject: [PATCH] Reducing delay between UDC requests to 100ms (#25635) --- .../UserDirectedCommissioningClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocols/user_directed_commissioning/UserDirectedCommissioningClient.cpp b/src/protocols/user_directed_commissioning/UserDirectedCommissioningClient.cpp index 6a912e66a37b98..5701c827b43bc7 100644 --- a/src/protocols/user_directed_commissioning/UserDirectedCommissioningClient.cpp +++ b/src/protocols/user_directed_commissioning/UserDirectedCommissioningClient.cpp @@ -50,7 +50,7 @@ CHIP_ERROR UserDirectedCommissioningClient::SendUDCMessage(TransportMgrBase * tr ChipLogError(AppServer, "UDC SendMessage failed: %" CHIP_ERROR_FORMAT, err.Format()); return err; } - sleep(1); + usleep(100 * 1000); // 100ms } ChipLogProgress(Inet, "UDC msg sent");