Initially have the custom characteristic as disabled. You can have a separate custom characteristic to send password. Now send password to the peripheral via that characteristic. Now enable to characteristic only if the password entered is correct.
This might be a possible implementation.
How do you enable/disable a characteristic? Or is there a way to allow/disallow reading/writing?
1 of 1 people found this helpful
Can you have a look at the BLE_OTA_External_Memory_Bootloadable Example project. In this project functions, CyBle_GattsDisableAttribute(), CyBle_GattsEnableAttribute() has been used.
Works, thank you.