Skip to content

Commit 6894fce

Browse files
committed
samples: net: openthread: update README to use correct code block syntax
Update the ot-coap sample README so that code blocks have proper syntax highlighting. Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
1 parent 7c50cb4 commit 6894fce

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

samples/net/openthread/coap/README.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Checking Thread network state
7878

7979
Open a console on both server and client boards then check the sate:
8080

81-
.. code-block::
81+
.. code-block:: console
8282
8383
server:~$ ot state
8484
router
@@ -109,7 +109,7 @@ This requires an `OpenThread Border Router`_ with NAT64 support enabled on the s
109109
First, check that the server (or the client) is connected to the otbr and
110110
can use NAT64:
111111

112-
.. code-block::
112+
.. code-block:: console
113113
114114
server:~$ ot netdata show
115115
router
@@ -133,7 +133,7 @@ Thread network to contact devices on Thread network.
133133

134134
We should have an IPv6 address using the prefix:
135135

136-
.. code-block::
136+
.. code-block:: console
137137
138138
server:~$ ot ipaddr
139139
fd78:b9ce:5477:9c6e:0:ff:fe00:a800
@@ -147,7 +147,7 @@ to contact the CoAP server outside of the Thread network.
147147

148148
We could also check that we could access internet from Thread network:
149149

150-
.. code-block::
150+
.. code-block:: console
151151
152152
server:~$ ot ping 8.8.8.8
153153
Pinging synthesized IPv6 address: fd6f:cb3a:802:2:0:0:808:808
@@ -159,14 +159,14 @@ If everything is working, then, we could start controlling the LED from a comput
159159
To do that, let's use aiocoap-client, a tool written in python.
160160
First, install it:
161161

162-
.. code-block::
162+
.. code-block:: shell
163163
164164
pip install aiocoap
165165
166166
167167
Then, send a request to the server to toggle the LED:
168168

169-
.. code-block::
169+
.. code-block:: shell
170170
171171
aiocoap-client -m PUT --payload '{"led_id":0,"state":2}' coap://[fd6f:cb3a:802:1:f0ec:c1e2:c1bb:744]/led
172172

0 commit comments

Comments
 (0)