Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Gatt Read/write and insufficient key size error

Hi

When a GATT Table is created using the softdevice api, how do specify that a service or characteristic shall have a minimum key size of X so that if the current encrytion was done with a key <X size, then it will read with the  BLE_L2CAP_CH_STATUS_CODE_INSUFF_ENC_KEY_SIZE  error.

For that error to result, I would have to specify the minimum key size when a add a characteristic (or service) but I cannot find the relevant api to specify that.

I will be most grateful to any pointers.

Look forward to hearing from you

Kind regards
Mahendra

Parents Reply Children
No Data
Related