hi. i want to parse the data before sending to BLE UART. i am fetching data from RX/TX pin. and now i want to do some modification in data before sending it.
this block of code is responsible for handling data coming from RX/TX PIN
static void nus_data_handler(ble_nus_t * p_nus, uint8_t * p_data, uint16_t length)
{
showData(p_data,length);
//parseIncoming(buf, bytesRead);
for (uint32_t i = 0; i < length; i++)
{
while(app_uart_put(p_data[i]) != NRF_SUCCESS);
}
while(app_uart_put('\n') != NRF_SUCCESS);
}
but how can i see data prensent in p_data array. i used RTT viewer to see data. but nothing is comming and also want to modify my data coming from RX/TX before sending.
thanks!!