BLE_GAP_SetDataRelatedAddrChange
C
uint16_t BLE_GAP_SetDataRelatedAddrChange(uint8_t advHandle, uint8_t changeReasons);Description
Sets data related address changes.
Note
This function refreshes the Resolvable Private Address used by the advertising set identified by the advHandle parameter, whether or not the address timeout period has been reached. The changeReasons parameter specifies the reason(s) for refreshing addresses. If any legacy advertising feature API has been used previously, the advHandle parameter is ignored.
Parameters
| Parameter | Description |
|---|---|
| [in] advHandle | Identifies the advertising set. |
| [in] changeReasons | Indicates when to change the address, see Reasons for changing the address. |
Return values
| Return value | Description |
|---|---|
| MBA_RES_SUCCESS | Successfully sets data related address changes. |
| MBA_RES_INVALID_PARA | The parameters provided are invalid. |
| MBA_RES_UNKNOWN_ADV_ID | Unknown advertising identifier. |
