Skip to content

Commit

Permalink
Added commands to bridge-app to control the reachable attribute for a…
Browse files Browse the repository at this point in the history
…n endpoint. (project-chip#21431)
  • Loading branch information
jwinder-ca authored and isiu-apple committed Sep 16, 2022
1 parent a77cf22 commit a3522c7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions examples/bridge-app/linux/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit a3522c7

Please sign in to comment.