mirror of
https://github.com/espressif/openthread.git
synced 2026-07-09 05:40:27 +00:00
a551133493
Having examples/posix and src/core/posix is confusing. This commit renames the examples posix platform to simulation.
1.1 KiB
1.1 KiB
OpenThread Simulation on POSIX
This directory contains example platform drivers for simulation on POSIX.
Build Examples
Build using autotools
$ cd <path-to-openthread>
$ ./bootstrap
$ make -f examples/Makefile-simulation
After a successful build, the elf files are found in:
<path-to-openthread>/output/<platform>/bin
Build using cmake/ninja
$ cd <path-to-openthread>
$ mkdir build && cd build
$ cmake -GNinja -DOT_PLATFORM=simulation ..
$ ninja
After a successful build, the elf files are found in:
<path-to-openthread>/build/examples/apps/cli<path-to-openthread>/build/examples/apps/ncp
Interact
- Spawn the process:
$ cd <path-to-openthread>/output/<platform>/bin
$ ./ot-cli-ftd 1
- Type
helpfor list of commands.
> help
help
channel
childtimeout
contextreusedelay
extaddr
extpanid
ipaddr
keysequence
leaderweight
masterkey
mode
netdataregister
networkidtimeout
networkname
panid
ping
prefix
releaserouterid
rloc16
route
routerupgradethreshold
scan
start
state
stop
whitelist