I am experimenting with light_switch server example from mesh SDK 2.1.1 . I want to add UART functionality to this example.
I referred to the ble_app_uart example from sdk15.0.0 and I have successfully merged the UART part into light_switch server example. My code get compiled and I am able to flash it to my nrf52 dev board but printf() and __LOG both are send to RTT.
I want to push the debug logs to RTT and printf() to UART. I know it can be done as it is already implemented in the ble_app_uart example but I dont know what is needed to achieve this?