Hi ,
can u please provide more details about error code 4, returned by ble_ancs_c_init function.
what is this error, and how to resolve it???
thanks,
amarjeet
Hi ,
can u please provide more details about error code 4, returned by ble_ancs_c_init function.
what is this error, and how to resolve it???
thanks,
amarjeet
Hi,
Error code 4 is the same as NRF_ERROR_NO_MEM. The function ble_ancs_c_init() calls sd_ble_uuid_vs_add(), which can return this code if there are no more free slots for VS UUIDs. Try to increase NRF_SDH_BLE_VS_UUID_COUNT found in sdk_config.h in order to solve this.
what is error code 8 now.
i have increased NRF_SDH_BLE_VS_UUID_COUNT = 6,now i am getting error code 8.
can u please provide me all the error code details???
Looking at the same list I linked to in the first post, you can see that error code 8 is "NRF_ERROR_INVALID_STATE". Did you remember to initialize the DB Discovery module before you called ble_ancs_c_init() ? (i.e did you call db_discovery_init() ?)
yes, u r right, now its working.
thanks