nRF5 SDK v14.0.0
Command Line Interface (CLI) Example

The CLI Example shows how to use the CLI library. It defines three instances of CLI working on different transport layers:


Test the CLI Example application by performing the following steps:

  1. Compile and program the application.
  2. Start a terminal emulator like PuTTY (recommended) with the following Terminal settings, and establish the connection:
    • Serial: for UART or USB CDC transport.
    • Telnet, port 19021: for RTT transport. For establishing RTT session, use JLink.exe and not J-Link Viewer.
  3. You can now start using the command line interface.
  4. Press the Tab button to see all available commands.
  5. Test functionality of each command. If you need a hint you can call commands with option -h or –help.

Documentation feedback | Developer Zone | Subscribe | Updated