Hello
Im using a Custom board and APP BLE UART example
this is a pseudocode
void SensorFunction()// funcion que hace que cuando reciba la pabara pulso manda a leer el sensor
{
while(pulso == true)// mientras se cunpla conicion, esta leyendo los valores de MAx30105
{
pulsoCount++;
// code
.
.
.
.
if(pulsoCount >= 130)// condicion si ya supero el timepo de lectura y si detetcto la presencia del punto a medir comienza la envacion de los datos
{
pulso = false;
}
}
}
int main(void)//setup Main
{
bool erase_bonds;
bool cambio = true;;
// Initialize.
uart_init();
log_init();
timers_init();
buttons_leds_init(&erase_bonds);//&erase_bonds
power_management_init();
ble_stack_init();
gap_params_init();
gatt_init();
services_init();
advertising_init();
conn_params_init();
gpiote_init();
/////incializacion de sensores,botones y pantalla
twi_master_init();// inicaliza la comunicaicon I2C para MPU
advertising_start();
for(;;)
{
if(pulso == true) // cuando detecte que la app manda los caracteres puslo , esta condicion mandara a llamar la secuencia de pulso
{
SensorFunction();// inicia la secuencia de medicion de pulso
}
idle_state_handle();
}
}
when i call a SensorFunction() over NUS , the fucttion keep a ciclo while aprox, 15 to 25 seg, during this time the BLE is Disconnected i can see in Nordic APP ( NRF Toolbox app)
I was debugging but I could not to se a specific error , the function SensorFunction() works, but the bluetooth connection is lostest
what is the posibble problem?
when i was using DK nrf52840 , this problem don't existed
thanks and regards