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

cross mob
JoYa_4324706
Level 3
Level 3
5 sign-ins First solution authored 10 replies posted

Hi,

I am using a PSoC 6 prototyping kit and try to use the white list APIs, but the description from the PDL seems a little ambiguous to me.

I have set the advertisement settings in BLE_PDL as follows:

pastedImage_0.png

How and when should I call Cy_BLE_AddDeviceToWhiteList() to add my remote device to white list so that I can allow it to scan and connect?

Moreover, what should the parameter be for Cy_BLE_GetWhiteList() if I want to see if the device has really been added to white list properly?

(Should I create a (const cy_stc_ble_white_list_retention_t *) variable to pass it to the function?)

Thanks!

Best,

Joseph

0 Likes
1 Solution
ShipingW_81
Moderator
Moderator
Moderator
500 replies posted 250 solutions authored 250 replies posted

Yes, you need to create a new entity of that type to get the white list, that is, the new entity is passed with the address where white list is stored.

You can refer to below code example, in which it demonstrates how to handle resolving list correctly. The handling is almost identical to white list.

https://www.cypress.com/documentation/code-examples/ce212742-ble-42-data-length-security-privacy-pso...

View solution in original post

1 Reply
ShipingW_81
Moderator
Moderator
Moderator
500 replies posted 250 solutions authored 250 replies posted

Yes, you need to create a new entity of that type to get the white list, that is, the new entity is passed with the address where white list is stored.

You can refer to below code example, in which it demonstrates how to handle resolving list correctly. The handling is almost identical to white list.

https://www.cypress.com/documentation/code-examples/ce212742-ble-42-data-length-security-privacy-pso...