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

Length of sd_ble_gatts_sys_attr_get

According to the device manager the length in bytes returned by sd_ble_gatts_sys_attr_get() is: ((ATTR_SIZE * (CCCD_COUNT + 1) + CRC) * 4)

When I call sd_ble_gatts_sys_attr_get with p_sys_attr_data = NULL the returned length is 92.

How can the above formula give 92 as a result knowing that ATTR_SIZE = 6 and CRC = 2

I am using SD 7.1.0.

Related