Redirect CLI input/output to BLE

Hi,

  I'm using the nRF52840 using SDK 17.0.2.  I've implemented the CLI for flashlog as well as several other custom commands.  It works well when entering commands on the UART and getting the response printed back out on the UART console.

  I now need to be able to do the same thing over BLE, ideally using the NUS service.  I would like to be able to enter "flashlog read" on nRF Connect running on my phone, and see the same flashlog entries come back on my phone as I now see on the UART.  Is this feasible?

  I've looked at the ble_app_cli example program, but it uses the task_manager, which I am not using.  I only have a simple background task running in a while 1 loop.  I'm not using FreeRTOS either.

  Thanks...

Brian

Related