This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi team,
We are looking at simple_central.c in the simple_central example and would like to know under what circumstances would we reach the else statement (line 881) in the GAP_LINK_ESTABLISHED_EVENT case (i.e. pEvent->gap.hdr.status != SUCCESS)?
Since this happens after the GAPCentralRole_EstablishLink(), will the stack continue to attempt to connect to the peripheral? If not, will the application call GAPCentralRole_EstablishLink() again to connect to the peripheral?
Also, will the stack send a GAP_LINK_TERMINATED_EVENT after the connection fails?
Regards,
Akash Patel