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

How to get current length of variable length attribute?

According to https://devzone.nordicsemi.com/f/nordic-q-a/3497/sd_ble_gatts_value_get/12659#12659, it appears that sd_ble_gatts_value_get() can only return the maximum length of a variable-length attribute. Is that correct?

If so, how can one get the current length, other that accessing the init-data passed to characteristic_add()?

Thanks!

Related