mirror of
https://github.com/espressif/openthread.git
synced 2026-08-01 00:27:47 +00:00
[thci] add setCcmState method in thci (#7179)
This commit adds API method setCcmState to THCI file.
This commit is contained in:
@@ -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):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user