From 0e8b6604cb256cef828a0ebb37bdd031cdf0677d Mon Sep 17 00:00:00 2001 From: canisLupus1313 <85344032+canisLupus1313@users.noreply.github.com> Date: Fri, 19 Nov 2021 19:34:13 +0100 Subject: [PATCH] [thci] add setCcmState method in thci (#7179) This commit adds API method setCcmState to THCI file. --- tools/harness-thci/OpenThread.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/harness-thci/OpenThread.py b/tools/harness-thci/OpenThread.py index 9dd9b4b7e..9f173a56f 100644 --- a/tools/harness-thci/OpenThread.py +++ b/tools/harness-thci/OpenThread.py @@ -3604,6 +3604,11 @@ class OpenThreadTHCI(object): return s + @API + def setCcmState(self, state=0): + assert state in (0, 1), state + self.__executeCommand("ccm {}".format("enable" if state == 1 else "disable")) + class OpenThread(OpenThreadTHCI, IThci):