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

PSoC™ 6

Jiabin
Level 2
10 questions asked First like received 50 sign-ins
Level 2

Hi,

 

 I am learning the BLE bonding and pairing by studying the code example "CE212742".

In the StackEventHandle in the example code, there is the following code:

/* Generate new private address automatically */
Cy_BLE_SetResolvablePvtAddressTimeOut(CY_BLE_PVT_ADDRESS_TIMEOUT);

My question is:

1. Will the BLE API automatically renew the private address after this "CY_BLE_PVT_ADDRESS_TIMEOUT"?

2. Will the StackEventHandle receive an event after this "CY_BLE_PVT_ADDRESS_TIMEOUT"? If yes, what is the event?

Thank you very much for reading the question and providing any comments or suggestions.

 

Best regards,

Jiabin

0 Likes
1 Solution
Yugandhar
Moderator
Moderator First comment on blog 750 replies posted 500 replies posted
Moderator

Hello,

Cy_BLE_SetResolvablePvtAddressTimeOut function is used to set the length of time the controller uses a Resolvable Private Address before a new resolvable private address is generated and starts being used. This timeout applies to all addresses generated by the BLE Stack.


Request complete is informed through 'CY_BLE_EVT_SET_RPA_TO_COMPLETE' event. This event indicates completion of the Set RPA timeout command.

Thanks,
P Yugandhar.

View solution in original post

1 Reply
Yugandhar
Moderator
Moderator First comment on blog 750 replies posted 500 replies posted
Moderator

Hello,

Cy_BLE_SetResolvablePvtAddressTimeOut function is used to set the length of time the controller uses a Resolvable Private Address before a new resolvable private address is generated and starts being used. This timeout applies to all addresses generated by the BLE Stack.


Request complete is informed through 'CY_BLE_EVT_SET_RPA_TO_COMPLETE' event. This event indicates completion of the Set RPA timeout command.

Thanks,
P Yugandhar.

Top labels