From a3522c7e47140344593a091f9d389d418b11425c Mon Sep 17 00:00:00 2001 From: jwinder-ca <105392648+jwinder-ca@users.noreply.github.com> Date: Fri, 29 Jul 2022 14:03:58 -0600 Subject: [PATCH] Added commands to bridge-app to control the reachable attribute for an endpoint. (#21431) --- examples/bridge-app/linux/main.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/examples/bridge-app/linux/main.cpp b/examples/bridge-app/linux/main.cpp index e995c474a5a5fe..5d26ba4b3edd67 100644 --- a/examples/bridge-app/linux/main.cpp +++ b/examples/bridge-app/linux/main.cpp @@ -855,6 +855,18 @@ void * bridge_polling_thread(void * context) // TC-ACT-2.2 step 3i, add "Turn off Room 1 renamed lights" action3.setIsVisible(true); } + + // Commands used for the Bridged Device Basic Information test plan + if (ch == 'u') + { + // TC-BRBINFO-2.2 step 2 "Set reachable to false" + TempSensor1.SetReachable(false); + } + if (ch == 'v') + { + // TC-BRBINFO-2.2 step 2 "Set reachable to true" + TempSensor1.SetReachable(true); + } continue; }