zephyr/snippets/nus-console
Luis Ubieda 7fb75780df snippets: nus-console: Redirect Shell to nus-console
To allow easily building samples using the shell, without needing to
specify additional configurations. Tested with:
```
west build -b nrf52840dk/nrf52840 \
           -S nus-console` \
           samples/subsys/shell/shell_module
```

Signed-off-by: Luis Ubieda <luisf@croxel.com>
2024-04-29 15:49:53 +02:00
..
README.rst
nus-console.conf
nus-console.overlay snippets: nus-console: Redirect Shell to nus-console 2024-04-29 15:49:53 +02:00
snippet.yml

README.rst

.. _snippet-nus-console:

NUS Console Snippet (nus-console)
########################################

.. code-block:: console

   west build -S nus-console [...]

Overview
********

This snippet redirects serial console output to a UART over NUS (Bluetooth LE) instance.
The Bluetooth Serial device used shall be configured using :ref:`devicetree`.

Requirements
************

Hardware support for:

- :kconfig:option:`CONFIG_BT`
- :kconfig:option:`CONFIG_BT_PERIPHERAL`
- :kconfig:option:`CONFIG_BT_ZEPHYR_NUS`
- :kconfig:option:`CONFIG_SERIAL`
- :kconfig:option:`CONFIG_CONSOLE`
- :kconfig:option:`CONFIG_UART_CONSOLE`

A devicetree node with node label ``bt_nus_console_uart`` that points to an enabled
device node with nus-uart support. This should look roughly like this in
:ref:`your devicetree <get-devicetree-outputs>`:

.. code-block:: DTS

   bt_nus_console_uart: bt_nus_console_uart {
      compatible = "zephyr,nus-uart";
        /* ... */
   };