This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Send text by BLE

I'm sending data from my phone to the device using nRF Connect app for android as follows 

uint8_t SoporteBLE::enviaTiempoEspera()
{
uint8_t tiempoEspera;
if(Bluefruit.connected()){
if (TiempoEspera.read8()) {
tiempoEspera = (uint8_t) TiempoEspera.read8();
delay(250);
}else{
tiempoEspera = 0;
}

}
return tiempoEspera;
}

It works fine, but I need to send text. I tried this, but don´t work

char * SoporteBLE::enviaSentido()
{
char * sentido;
if(Bluefruit.connected()){
if (Sentido.read16()) {
sentido = (char *) Sentido.read16();
delay(250);
}else{
sentido = 0;
}
}
return sentido;
}

What can i do for solve this problem?

Parents Reply Children
Related