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

Changing characteristic security mode on the fly?

Is it possible to change a characteristic's security mode after it's already been added with sd_ble_gatts_characteristic_add()?

I'd like to be able to switch back and forth between "BLE_GAP_CONN_SEC_MODE_SET_OPEN" and "BLE_GAP_CONN_SEC_MODE_SET_ENC_NO_MITM" I.e. one that requires bonding and one that does not.

Thanks.

Related