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

Maximum number of services

Hi,

Could you tell me please the maximum supporting number of services?

This number may be varied depending on number of attributes in each service and its size. So how can I evaluate maximum size of GATT table?

I decided to create several services and at some point 'sd_ble_gatts_characteristic_add()' returned 'NRF_ERROR_NO_MEM'.

Also I interested in what cases it is advantageous to use option BLE_GATTS_VLOC_USER. For example, I have attribute with length 1 byte. If I use BLE_GATTS_VLOC_USER, I think, stack will have pointer to my data (size of pointer = 4 bytes). If I use BLE_GATTS_VLOC_STACK, does is take 1 byte in table inside Stack?

Best regards, Artem Zemlyanukhin

Related