Hello,
I am using cc2640r2f as multirole and it will connect with some master or slave devices.
Is there any way to distinguish if the multirole is connected /disconnected with master or slave device?
waiting for your kind reply.
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.
Hello,
I am using cc2640r2f as multirole and it will connect with some master or slave devices.
Is there any way to distinguish if the multirole is connected /disconnected with master or slave device?
waiting for your kind reply.
Hi MAbbas,
You can call linkDB_NumActive() to get the number of active connections. Documentation for it can be found here:
http://software-dl.ti.com/simplelink/esd/simplelink_cc2640r2_sdk/1.50.00.58/exports/docs/blestack/ble_user_guide/doxygen/ble/html/group___link_d_b.html#ga2dfebc6681d478ceb2514f79b4dec330
Thanks,
Gerardo
You could get the connection handle by using the connHandleMap, in GAP_LINK_TERMINATED_EVENT, that has the address. So once it has already computed the connIndex using the handle you can check:
connHandleMap[connIndex].strAddr
Hope that helps,
Gerardo