Not connection with CYBLE_GAPP_SCAN_CONN_WHITELIST_ONLY

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

cross mob
vylec_2381331
Level 1
Level 1

Hi.
After bonding procedure with my device as peripheral, I set
cyBle_discoveryParam.advFilterPolicy = CYBLE_GAPP_SCAN_ANY_CONN_WHITELIST

or CYBLE_GAPP_SCAN_CONN_WHITELIST_ONLY

and after disconnect, my smartphone (android or apple) did not connect to device but find them.

If I set

cyBle_discoveryParam.advFilterPolicy = CYBLE_GAPP_SCAN_ANY_CONN_ANY

connection occurs normally.

Please tell me where to look for the cause.

Thanks.

0 Likes
1 Solution
Owen_Zhang123
Moderator
Moderator
Moderator
5 questions asked 500 solutions authored 250 sign-ins

You need to add the device to whitelist for connection if you use CYBLE_GAPP_SCAN_ANY_CONN_WHITELIS or CYBLE_GAPP_SCAN_CONN_WHITELIST_ONLY.

Please see the following examples for whitelist: https://www.cypress.com/blog/problem-solver/project-014-whitelist

View solution in original post

0 Likes
2 Replies
Owen_Zhang123
Moderator
Moderator
Moderator
5 questions asked 500 solutions authored 250 sign-ins

You need to add the device to whitelist for connection if you use CYBLE_GAPP_SCAN_ANY_CONN_WHITELIS or CYBLE_GAPP_SCAN_CONN_WHITELIST_ONLY.

Please see the following examples for whitelist: https://www.cypress.com/blog/problem-solver/project-014-whitelist

0 Likes

Hi, Owez.
Thanks for answer.
Hm, I use CyBle_StoreBondingData(0) and when I call CyBle_GapGetDevicesFromWhiteList I receive sum data.

I thought that CyBle_StoreBondingData function will automatically put bonded device in White list.

0 Likes