This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

CLI UART + NUS

Hello,

I'm trying to make CLI working with UART and BLE (NUS) backend simultaneously. Starting point is CLI example from SDK 14. What should I enable in sdk_config.h and how shuould I intialize CLI with UART and NUS in my app? In ble_app_cli CLI NUS is working alongside with RTT backend. How can I use UART instead of RTT?

Parents Reply
  • For now I have Logger module + CLI + UART (as transport layer). I would like to add NUS, and make it working simultaneously.

    This is what I added to makefile:

    $(SDK_ROOT)/components/libraries/experimental_cli/ble_uart/nrf_cli_ble_uart.c \
    $(SDK_ROOT)/components/ble/ble_services/ble_nus/ble_nus.c \
    $(SDK_ROOT)/components/libraries/experimental_cli/ble_uart \
    

    This is what I changed/added to sdk_config.h:

    #define BLE_NUS_ENABLED 1
    #define NRF_CLI_BLE_UART_ENABLED 1
    
Children
No Data
Related