This example application demonstrates a minimal OpenThread application that exposes the OpenThread configuration and management interfaces via a basic command-line interface. The steps below take you through the minimal steps required to ping one (emulated) Thread device from another (emulated) Thread device.
$ cd openthread
$ ./bootstrap-configure
$ makeSpawn the process:
$ cd openthread/examples/cli
$ ./soc --nodeid=1 -SStart OpenThread:
$ start
DoneWait a few seconds and verify that the device has become a Thread Leader:
$ state
leader
DoneView IPv6 addresses assigned to Node 1's Thread interface:
$ ipaddr
fdde:ad00:beef:0:0:ff:fe00:0
fe80:0:0:0:0:ff:fe00:0
fdde:ad00:beef:0:558:f56b:d688:799
fe80:0:0:0:f3d9:2a82:c8d8:fe43
DoneSpawn the process:
$ cd openthread/examples/cli
$ ./soc --nodeid=2 -SStart OpenThread:
$ start
DoneWait a few seconds and verify that the device has become a Thread Router:
$ state
leader
Done$ ping fdde:ad00:beef:0:558:f56b:d688:799
16 bytes from fdde:ad00:beef:0:558:f56b:d688:799: icmp_seq=1 hlim=64See the OpenThread CLI Reference README.md to explore more.