mirror of
https://github.com/espressif/openthread.git
synced 2026-09-07 09:40:12 +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:
+26
-8
@@ -15,6 +15,7 @@ OpenThread test scripts use the CLI to execute test cases.
|
||||
* [eidcache](#eidcache)
|
||||
* [extaddr](#extaddr)
|
||||
* [extpanid](#extpanid)
|
||||
* [ifconfig](#ifconfig)
|
||||
* [ipaddr](#ipaddr)
|
||||
* [keysequence](#keysequence)
|
||||
* [leaderweight](#leaderweight)
|
||||
@@ -32,9 +33,8 @@ OpenThread test scripts use the CLI to execute test cases.
|
||||
* [router](#router)
|
||||
* [routerupgradethreshold](#routerupgradethreshold)
|
||||
* [scan](#scan)
|
||||
* [start](#start)
|
||||
* [state](#state)
|
||||
* [stop](#stop)
|
||||
* [thread](#thread)
|
||||
* [version](#version)
|
||||
* [whitelist](#whitelist)
|
||||
|
||||
@@ -208,6 +208,24 @@ Set the Thread Extended PAN ID value.
|
||||
Done
|
||||
```
|
||||
|
||||
### ifconfig up
|
||||
|
||||
Bring up the IPv6 interface.
|
||||
|
||||
```bash
|
||||
> ifconfig up
|
||||
Done
|
||||
```
|
||||
|
||||
### ifconfig down
|
||||
|
||||
Bring down the IPv6 interface.
|
||||
|
||||
```bash
|
||||
> ifconfig down
|
||||
Done
|
||||
```
|
||||
|
||||
### ipaddr
|
||||
|
||||
List all IPv6 addresses assigned to the Thread interface.
|
||||
@@ -541,21 +559,21 @@ Perform an IEEE 802.15.4 Active Scan.
|
||||
Done
|
||||
```
|
||||
|
||||
### start
|
||||
### thread start
|
||||
|
||||
Enable OpenThread.
|
||||
Enable Thread protocol operation and attach to a Thread network.
|
||||
|
||||
```bash
|
||||
> start
|
||||
> thread start
|
||||
Done
|
||||
```
|
||||
|
||||
### stop
|
||||
### thread stop
|
||||
|
||||
Disable OpenThread.
|
||||
Disable Thread protocol operation and detach from a Thread network.
|
||||
|
||||
```bash
|
||||
> stop
|
||||
> thread stop
|
||||
Done
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user