This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

An issue with strange conn_handle value

Hello.
I work on the multirole mode application. There is a strange situation, the conn_handle is not equal to 0 when connecting for the first time (equal to 2). Because of this, NRF_ERROR_NO_MEM error occurs in the blcm_link_ctx_get function. 
Someone faced with such a situation?

Parents
  • I experienced the same thing (however for me conn_handle was 1 instead of 0) when I introduced central code to the application. Increasing the NRF_SDH_BLE_PERIPHERAL_LINK_COUNT, in my case from 1 to 2, resolved the problem, since it can now access the '1' index of the link context storage. I only intend on using 1 link for peripheral connections though, which reduces my RAM budget unnecessarily...

Reply
  • I experienced the same thing (however for me conn_handle was 1 instead of 0) when I introduced central code to the application. Increasing the NRF_SDH_BLE_PERIPHERAL_LINK_COUNT, in my case from 1 to 2, resolved the problem, since it can now access the '1' index of the link context storage. I only intend on using 1 link for peripheral connections though, which reduces my RAM budget unnecessarily...

Children
No Data
Related