1.2.2.1.1.4.63 BLE_GAP_SetResolvingList
C
uint16_t BLE_GAP_SetResolvingList(uint8_t num, BLE_GAP_ResolvingListParams_T *p_resolvingList);
Description
Set devices to the resolving list.
Note
This API is not permitted in the following three scenarios:
Advertising is enabled.
Scanning is enabled.
BLE_GAP_CreateConnection, BLE_GAP_ExtCreateConnection or BLE_GAP_CreateSync API is outstanding.
Parameters
Parameter | Description |
---|---|
[in] num | The number of the resolving list included. See BLE_GAP_MAX_RESOLV_NUM. |
[in] p_resolvingList | Pointer to BLE_GAP_ResolvingListParams_T structure buffer. |
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | Successfully add the device to the resolving list. |
MBA_RES_OOM | Internal memory allocation failure. |
MBA_RES_INVALID_PARA | When number exceeds BLE_GAP_MAX_RESOLV_NUM. |
MBA_RES_BAD_STATE | Resolving list cannot be configured while advertising, scanning or creating a connection. |