Skip to content

Commit b0cfd94

Browse files
committed
doc: modify coap doc
Signed-off-by: Yuguo Zou <yuguo.zou@synopsys.com>
1 parent 8fb1a4c commit b0cfd94

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

example/freertos/iot/coap/coap_server/README.rst

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ Building and Running
3939
$ make BOARD=emsk BD_VER=22 CUR_CORE=arcem7d TOOLCHAIN=gnu run
4040
4141
42-
When the WiFi is connected and CoAP server is running, you may run python code shown below. You may save this code as a .py file and run it from a new cmd console. The python code uses CoAPthon packet as a CoAP Client and try to get and post resources from server. Please noted that the host IP in python code should be replaced to the ipaddr shown on board uart console before running.
42+
When the WiFi is connected and CoAP server is running, you may run python code shown below.
43+
The python code uses CoAPthon packet as a CoAP Client and try to get and post resources from server. Please noted that the host IP in python code should be replaced to the ipaddr shown on board uart console before running.
4344

4445
.. code-block:: python
4546
@@ -64,6 +65,14 @@ When the WiFi is connected and CoAP server is running, you may run python code s
6465
client.stop()
6566
6667
68+
You may save this code as a .py file (e.g. ``CoAP_client.py``) and run it from a new cmd console. Here is an example of running the python code at a new cmd console:
69+
70+
.. code-block:: console
71+
72+
$ cd <py_file_location>
73+
$ CoAP_client.py
74+
75+
6776
Sample Output
6877
=============
6978

0 commit comments

Comments
 (0)