mirror of
https://github.com/espressif/openthread.git
synced 2026-08-09 04:07:47 +00:00
spinel-cli: Fixes for spinel documentation bugs. (#1478)
* spinel-cli: Fixes for spinel documentation bugs. * spinel doc: fix PROP_STREAM_DEBUG = 'D'
This commit is contained in:
committed by
Jonathan Hui
parent
36ff8022dc
commit
db0e2057ef
@@ -242,7 +242,7 @@ of `STATUS_ALREADY`.
|
||||
### PROP 112: PROP_STREAM_DEBUG {#prop-stream-debug}
|
||||
|
||||
* Type: Read-Only-Stream
|
||||
* Packed-Encoding: `U`
|
||||
* Packed-Encoding: `D`
|
||||
|
||||
Octets: | *n*
|
||||
--------|------------
|
||||
|
||||
@@ -30,10 +30,9 @@ The power of this tool is three fold:
|
||||
### Package Installation
|
||||
|
||||
```
|
||||
sudo easy_install pip
|
||||
sudo pip install --user pyserial
|
||||
sudo pip install --user ipaddress
|
||||
sudo pip install --user scapy==2.3.2
|
||||
# From openthread root
|
||||
cd tools/spinel-cli
|
||||
sudo python setup.py install
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
@@ -674,7 +674,7 @@ class SpinelPropertyHandler(SpinelCodec):
|
||||
def IPv6_ICMP_PING_OFFLOAD(self, _, payload):
|
||||
return self.parse_b(payload)
|
||||
|
||||
def STREAM_DEBUG(self, _, payload): return self.parse_U(payload)
|
||||
def STREAM_DEBUG(self, _, payload): return self.parse_D(payload)
|
||||
|
||||
def STREAM_RAW(self, _, payload): return self.parse_D(payload)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user