BLE_GAP_SetResolvingList
C
uint16_t BLE_GAP_SetResolvingList(uint8_t num, BLE_GAP_ResolvingListParams_T *p_resolvingList);
Description
Sets devices to the resolving list.
Note
This API is not permitted under the following conditions: - If advertising is enabled. - If scanning is enabled. - If a create connection command is outstanding (see BLE_GAP_CreateConnection, BLE_GAP_ExtCreateConnection or BLE_GAP_CreateSync).
Parameters
Parameter | Description |
---|---|
[in] num | Number of devices to include in the resolving list. See Maximum resolving list size. |
[in] p_resolvingList | Pointer to the BLE_GAP_ResolvingListParams_T structure buffer. |
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | Successfully adds the device to the resolving list. |
MBA_RES_OOM | Internal memory allocation failure occurred. |
MBA_RES_INVALID_PARA | When the number exceeds Maximum resolving list size. |
MBA_RES_BAD_STATE | Resolving list cannot be configured while advertising, scanning or creating a connection. |