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:
Martin Turon
2017-03-21 13:04:05 -07:00
committed by Jonathan Hui
parent 36ff8022dc
commit db0e2057ef
3 changed files with 5 additions and 6 deletions
+1 -1
View File
@@ -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*
--------|------------
+3 -4
View File
@@ -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
+1 -1
View File
@@ -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)