- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Solved! Go to Solution.
- Labels:
-
BLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.