Bond more than 4 devices

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
pamac_1655886
Level 2
Level 2
First like received

I'm trying to bond several mobile phones with the same cypress BLE device but when I reach 4 of them I'm not allowed to bond any more. I'm trying to clear the list of bonded devices with the CyBle_GapRemoveDeviceFromWhiteList function. Am I doing the right thing? I'm always getting a CYBLE_ERROR_INVALID_OPERATION error, which means that the whitelist is already in use. May be I'm calling this function in the wrong state of the stack's state machine. Thanks in advance. 

0 Likes
1 Solution
himam_31
Employee
Employee
50 likes received 25 likes received 10 likes received

Hello ,

   

You are using the correct API (CyBle_GapRemoveDeviceFromWhiteList()).Please have a look at the example project "Day014_Whitelist" for the proper usage of this API. (Link:https://github.com/cypresssemiconductorco/PSoC-4-BLE/tree/master/100_Projects_in_100_Days/Day014_Whi...)

   

 

   

Thanks,

   

Hima

View solution in original post

0 Likes
2 Replies
himam_31
Employee
Employee
50 likes received 25 likes received 10 likes received

Hello ,

   

You are using the correct API (CyBle_GapRemoveDeviceFromWhiteList()).Please have a look at the example project "Day014_Whitelist" for the proper usage of this API. (Link:https://github.com/cypresssemiconductorco/PSoC-4-BLE/tree/master/100_Projects_in_100_Days/Day014_Whi...)

   

 

   

Thanks,

   

Hima

0 Likes
pamac_1655886
Level 2
Level 2
First like received

Thanks for your reply.

   

I just solved this problem by calling the CyBle_GapRemoveDeviceFromWhiteList inside the CYBLE_EVT_GAP_DEVICE_DISCONNECTED state of the Stack Event Handler. Now I´m allowed to clean the list of bonded devices. Thanks again.