Skip to content

Commit d977a57

Browse files
Piotr Szkotaktejlmand
Piotr Szkotak
authored andcommitted
doc: Update Thread CLI sample with setting basic parameters.
This PR updates the documentation with setting channel, panid, masterkey. Signed-off-by: Piotr Szkotak <piotr.szkotak@nordicsemi.no>
1 parent a7fc2d1 commit d977a57

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Configure the required Thread network parameters with the ``ot channel``, ``ot panid``, and ``ot masterkey`` commands.
2+
Make sure to use the same parameters for all nodes that you add to the network.
3+
The following example uses the default OpenThread parameters:
4+
5+
.. code-block:: console
6+
7+
uart:~$ ot channel 11
8+
Done
9+
uart:~$ ot panid 0xabcd
10+
Done
11+
uart:~$ ot masterkey 00112233445566778899aabbccddeeff
12+
Done

samples/openthread/cli/README.rst

+3
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ After building the sample and programming it to your development kit, test it by
133133
.. note::
134134
|thread_hwfc_enabled|
135135

136+
#. .. include:: /includes/thread_configure_network.txt
136137
#. .. include:: /includes/thread_enable_network.txt
137138
#. Invoke some of the OpenThread commands:
138139

@@ -188,6 +189,7 @@ To test communication between kits, complete the following steps:
188189
.. note::
189190
|thread_hwfc_enabled|
190191

192+
#. .. include:: /includes/thread_configure_network.txt
191193
#. .. include:: /includes/thread_enable_network.txt
192194
#. Test communication between the kits with the following command:
193195

@@ -265,6 +267,7 @@ To test the Thread Specification v1.2 features, complete the following steps:
265267
#. Turn on the developments kits.
266268
#. Set up the serial connection with both development kits.
267269
For more details, see :ref:`putty`.
270+
#. .. include:: /includes/thread_configure_network.txt
268271
#. .. include:: /includes/thread_enable_network.txt
269272
#. Test the state of the Thread network with the ``ot state`` command to see which kit is the leader:
270273

0 commit comments

Comments
 (0)