Timeout of private address

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

cross mob
Jiabin
Level 4
Level 4
100 sign-ins 25 replies posted First solution authored

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
Moderator
500 solutions authored 1000 replies posted 5 likes given

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
Moderator
500 solutions authored 1000 replies posted 5 likes given

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.