Ran
|
Jobs
3
|
Files
11
|
Run time
16s
|
Badge
Embed ▾
README BADGES
|
travis-ci
Add aditional Node Type Though the EZSP protocol document states only 8 different Node Types, it seems that real life NCP implementations also have a 0xFF Node type, which can be seen right after "Leave network" command. In that state the Node Type is unknown. However, the `bellows` library doesn't parse the value 0xFF and the `bellows info` command fails: ``` debug: Send command getNetworkParameters debug: Sending: b'224821575402db807e' debug: Data frame: b'2348a1575edce678bfd3e9c8e45287e' debug: Sending: b'83401b7e' debug: Application frame 40 (getNetworkParameters) received Exception in callback SerialTransport._read_ready() handle: <Handle SerialTransport._read_ready()> Traceback (most recent call last): File "/usr/lib/python3.5/asyncio/events.py", line 125, in _run self._callback(*self._args) File "/usr/local/lib/python3.5/dist-packages/serial_asyncio/__init__.py", line 106, in _read_ready self._protocol.data_received(data) File "/usr/local/lib/python3.5/dist-packages/bellows-0.6.0-py3.5.egg/bellows/uart.py", line 64, in data_received self.frame_received(frame) File "/usr/local/lib/python3.5/dist-packages/bellows-0.6.0-py3.5.egg/bellows/uart.py", line 86, in frame_received self.data_frame_received(data) File "/usr/local/lib/python3.5/dist-packages/bellows-0.6.0-py3.5.egg/bellows/uart.py", line 107, in data_frame_received self._application.frame_received(self._randomize(data[1:-3])) File "/usr/local/lib/python3.5/dist-packages/bellows-0.6.0-py3.5.egg/bellows/ezsp.py", line 170, in frame_received result, data = t.deserialize(data, schema) File "/usr/local/lib/python3.5/dist-packages/bellows-0.6.0-py3.5.egg/bellows/types/__init__.py", line 9, in deserialize value, data = type_.deserialize(data) File "/usr/local/lib/python3.5/dist-packages/bellows-0.6.0-py3.5.egg/bellows/types/basic.py", line 10, in deserialize r = cls(int.from_bytes(data[:cls._... (continued)
1329 of 1329 relevant lines covered (100.0%)
2.0 hits per line
ID | Job ID | Ran | Files | Coverage | |
---|---|---|---|---|---|
1 | 558.1 (TOXENV=lint) | 0 | Travis Job 558.1 | ||
2 | 558.2 (TOXENV=py35) | 11 |
100.0 |
Travis Job 558.2 | |
3 | 558.3 (TOXENV=py36) | 11 |
100.0 |
Travis Job 558.3 |
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|