Hi ,
I want to send a char data through bleutouth using ble nus
I am using this method
void sendble(char data)
{
uint8_t x = atoi(data);
uint16_t length1 ;
length1=strlen(data);
ret_code_t ret1 = ble_nus_data_send(&m_nus,
x,
&length1,
m_conn_handle);
if (ret1 == NRF_SUCCESS) {
NRF_LOG_RAW_INFO(" send ble success %s",x);
}
}
I don't have any error but I don't receive any information on my android application (NRF Toolbox).
Is there somthing wrong or I must use another command to send char value using ble_nus send?