You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: example/freertos/iot/coap/coap_server/README.rst
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,8 @@ Building and Running
39
39
$ make BOARD=emsk BD_VER=22 CUR_CORE=arcem7d TOOLCHAIN=gnu run
40
40
41
41
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.
43
44
44
45
.. code-block:: python
45
46
@@ -64,6 +65,14 @@ When the WiFi is connected and CoAP server is running, you may run python code s
64
65
client.stop()
65
66
66
67
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:
0 commit comments