diff --git a/platform/wiced/le_device_db_wiced_dct.c b/platform/wiced/le_device_db_wiced_dct.c index dd02ceed0..c3a75c53c 100644 --- a/platform/wiced/le_device_db_wiced_dct.c +++ b/platform/wiced/le_device_db_wiced_dct.c @@ -289,3 +289,7 @@ void le_device_db_dump(void){ log_info_key("irk", entry.irk); } } + +int le_device_db_wiced_dct_get_storage_size(void){ + return NVM_NUM_LE_DEVICES * sizeof(le_device_nvm_t); +} diff --git a/platform/wiced/le_device_db_wiced_dct.h b/platform/wiced/le_device_db_wiced_dct.h index dcdd4274e..a0f2abb56 100644 --- a/platform/wiced/le_device_db_wiced_dct.h +++ b/platform/wiced/le_device_db_wiced_dct.h @@ -48,6 +48,8 @@ extern "C" { #endif +#include + /* API_START */ /** @@ -55,6 +57,11 @@ extern "C" { */ void le_device_db_wiced_dct_set_start_address(uint32_t start_address); +/* + * @brief Get Size of LE Device DB DCT part + */ +int le_device_db_wiced_dct_get_storage_size(void); + /* * @brief Delete all le device entries */