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

How to know which connection is timeout

Dear Nordic:

I have a ble central device. I assigned several ble sensor names to scan. If i find one,i will record the peer address for further use.

Now I have 3 sensors addresses, I turn them off all. I start up my central device to connect them. Of course I will get BLE_GAP_EVT_TIMEOUT event as the sensor are power off.

The question is: How could i know which connection the timeout event belongs to ?  As i initiate threee connecitons orderly, i get related  BLE_GAP_EVT_TIMEOUT orderly?

It's important for me to know clearly which connection is timeout, so i can initiate conneciton again.

Related