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.

Time to Cancel Device discovery

Hi,

I am using CC2541F256.

I have two queries.

1) If i call "GAPCentralRole_CancelDiscovery()" function to stop device discovery

     after how much time device discovery will stop ?

2) Is it possible to connect with peripheral device without stopping device discovery in "GAP_DEVICE_INFO_EVENT"

Regards,

Smitesh mali

  • Hello Smitesh,

    For your first question, do you mean how long does it take for the actual sub routine to execute?  For that, you would have to set breakpoints in IAR or add a timer to measure it.  If there are pending events when the function is called, I would think that those would have to be completed first.

    For the central role, the discovery mode is cancelled in the simpleBLECentral_handleKeys routine.  I don't specifically see where it is stopped in the other Event.

    Thanks,