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

S132 Attribute Table Size

Hi,

referring to the SoftDevice Specification, S132 Softdevice vx.0, paragraph 15.2 (Attribute table size) I wonder how one does work out the size of the attribute table.

The reference given at the bottom of the paragraph refers to the API and the API refers back to the S132 SoftDevice specification.

As I have quite a number of attributes I'd like to make sure my attribute table has got the right size.

Thanks four your help Matthias

Parents
  • Hi Matthias,

    I am afraid that there is no way to calculate the attribute size for a given number of services and characteristics( the internal build-up of the attribute table is "hidden" in the SoftDevice, which is not public information).

    You will get the NRF_ERROR_NO_MEM error when you add services and characteristics with sd_ble_gatts_service_add and sd_ble_gatts_characteristic_add and the attribute table size is to small. Thus, finding the correct attribute is a process of trail and error, i.e. increase the attribute table size until you dont get any errors.

    -Bjørn

Reply
  • Hi Matthias,

    I am afraid that there is no way to calculate the attribute size for a given number of services and characteristics( the internal build-up of the attribute table is "hidden" in the SoftDevice, which is not public information).

    You will get the NRF_ERROR_NO_MEM error when you add services and characteristics with sd_ble_gatts_service_add and sd_ble_gatts_characteristic_add and the attribute table size is to small. Thus, finding the correct attribute is a process of trail and error, i.e. increase the attribute table size until you dont get any errors.

    -Bjørn

Children
Related