mirror of
https://github.com/espressif/openthread.git
synced 2026-08-04 18:07:47 +00:00
Separate out interface up/down from Thread start/stop. (#278)
* Redefine otEnable/otDisable to just initialize/uninitialize the OpenThread stack. * Remove otInit API since it is replaced by otEnable. * Add otInterfaceUp/otInterfaceDown APIs to bring up/down IPv6 interface. * Add otThreadStart/otThreadStop APIs to start/stop Thread protocol operation. * Updated NCP implementation to utilize new APIs.
This commit is contained in:
@@ -94,11 +94,15 @@ class Node:
|
||||
self.pexpect.expect('Done')
|
||||
|
||||
def start(self):
|
||||
self.send_command('start')
|
||||
self.send_command('ifconfig up')
|
||||
self.pexpect.expect('Done')
|
||||
self.send_command('thread start')
|
||||
self.pexpect.expect('Done')
|
||||
|
||||
def stop(self):
|
||||
self.send_command('stop')
|
||||
self.send_command('thread stop')
|
||||
self.pexpect.expect('Done')
|
||||
self.send_command('ifconfig down')
|
||||
self.pexpect.expect('Done')
|
||||
|
||||
def clear_whitelist(self):
|
||||
|
||||
Reference in New Issue
Block a user