mirror of
https://github.com/espressif/openthread.git
synced 2026-07-08 13:20:25 +00:00
d145aafeea
This commit migrates the functionality covered by test_coap_observe.py to the Nexus test framework. - Enabled OPENTHREAD_CONFIG_COAP_OBSERVE_API_ENABLE in Nexus config. - Created test_coap_observe.cpp to test CoAP observations and notifications in a simulated network. - Handled edge cases in the test to avoid segfaults during cancel response processing. - Removed the old Python test test_coap_observe.py.
OpenThread Certification Tests
Inspector
Inspect nodes status by the following modification:
- Insert the inspector to where you want to inspect.
import debug
debug.Inspector(self).inspect()
- Run the test and it will stop at the line above and prompt
#.
./script/test clean build cert tests/scripts/thread-cert/Cert_5_1_01_RouterAttach.py
- Inspect
#
# 1
> state
leader
> exit
# 2
> panid
face
> exit
# exit
CLI reference
# mode
This is selection mode. You may select the node to inspect here.
list- list available nodes.exit- end inspecting, continue running test case.- <number> - select the node with id <number>. This will result in entering
>mode.
> mode
This is node mode. You may run OpenThread CLI here.
exit- go back to#mode.