Hi, I am using the nRF connect app to test the BLE function on my code. I am able to scan the device and Service UUIDs just fine. However, when I click on the "connect" button, the status shows "connecting" but it never gets connected.
In my main, I am calling the functions like this:
int main()
{
clock_init();
uart_config();
twi_init();
timers_init();
buttons_leds_init(&erase_bonds);
ble_stack_init();
gap_params_init();
gatt_init();
advertising_init();
services_init();
conn_params_init();
peer_manager_init();
application_timers_start();
advertising_start(&erase_bonds);
while(1) {
...
}
}
I have been trying to debug this but still isn't able to find cause to the problem. Any advice on where the issue might be?
Please let me know if more information is needed! Thank you!