Hi There,
I'm stuck with Getting BLE uart working in another example.
I wasn't sure if converting the BLE Uart example into a central/peripheral application would be more of a headache so I chose to start with The relay example and add UART functionality.
Some givens:
Keil uvision5, SDK 12.3, Nrf51DK, using Termite UART and NRF Toolbox UART viewer.
So maybe someone can tell me what I've done wrong but I started with adding UART init. to the main and working backwards on what was needed.
I added, uart event handle, then nus data handler, included app_uart.h and ble_nus.h, added some global variables, m_nus and m_conn_handle., added the service code from the ble example. went through SDK_Config and enabled the nus service,enabled the UART driver, added the uart and retarget library. basically anything that gave an error I dug through and cloned from the ble example.
I'm at a point now where I can communicate through UART to the device, but I cannot communicate out to the BLE app. I can connect with NRF Toolbox but no data is sent back and fourth. It's been a few days and I just dont want to keep bruteforcing things. What should i change in the relay codebase to get this to work?
Any help is appriciated. Thanks.