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

sd_ble_gatts_characteristic_add,argument p_cccd_md

Hi,

In SDK nRf51-SDK_9.0.0.2e23562, I call sd_ble_gatts_characteristic_add().

I set the p_cccd_md read_perm as BLE_SEC_MODE1LV2 or BLE_SEC_MODE1LV3, and set write_perm as BLE_SEC_MODE1LV1.

sd_ble_gatts_characteristic_add() return 7,it means argument Invaid.

But I set p_cccd_md read_perm as BLE_SEC_MODE1LV1 , and set write_perm as BLE_SEC_MODE1LV1.sd_ble_gatts_characteristic_add() return success.

And I set p_cccd_md read_perm as BLE_SEC_MODE1LV2 ,and set write_perm as BLE_SEC_NOACCESS.

sd_ble_gatts_characteristic_add() also return success.

I don not konw why

Parents Reply Children
No Data
Related