BLE_DM_SetFilterAcceptList
C
uint16_t BLE_DM_SetFilterAcceptList(uint8_t devCnt, uint8_t const *p_devId);
Description
Sets the filter accept list.
Parameters
Parameter | Description |
---|---|
[in] devCnt | The number of devices to add to the filter accept list. Must be less than or equal to BLE_DM_MAX_FILTER_ACCEPT_LIST_NUM. Pass zero to clear the list. |
[in] p_devId | Pointer to the list of device IDs to add. Pass NULL to clear the list. |
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | Filter accept list set or cleared successfully. |
MBA_RES_INVALID_PARA | The devCnt exceeds BLE_DM_MAX_FILTER_ACCEPT_LIST_NUM. |