SDK: 15.1
IDE: Keil
Softdevice: S132 v6.0
Hello, I am using the ble_app_uart example as a starting point. My goal is to send 5 bytes every 5 seconds to another nRF52 Development kit acting as the Central. For the central, I used ble_app_uart_c example. I have established successful link between the peripheral and client to send 5 bytes of my data. To do this, I created an App Timer, that every 5 seconds calls ble_nus_data_send() in the handler and transmits the array of 5 bytes to the central. This is working properly and I am able to see the 5 bytes of data every 5 seconds at the central side using a terminal program.
The question is, on the peripheral side, I would like to disable the UART peripheral since I no longer need it since I am plugging in my own data into ble_nus_data_send(). When I try to disable the UART by commenting out uart_init() inside the main() function, the devices stop connecting
uart_init();
What code needs to be modified in order to disable the UART without breaking the functionality I described above?