cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4 MCU

Anonymous
Not applicable

I have multiple custom characteristics in a custom service.  We will provide the user with a password that they will enter via a phone app.  What is the best way to secure characteristics and make them available via a password?

   

 

   

Thank you

   

 

   

Rich

0 Likes
1 Solution
himam_31
Employee

Hello Rich,

   

 

   

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.

   

Thanks,

   

Hima

View solution in original post

0 Likes
4 Replies
himam_31
Employee

Hello Rich,

   

 

   

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.

   

Thanks,

   

Hima

View solution in original post

0 Likes
Anonymous
Not applicable

Thanks Hima,

   

How do you enable/disable a characteristic?  Or is there a way to allow/disallow reading/writing?

   

 

   

Rich

0 Likes
himam_31
Employee

Hello,

   

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.

   

Thanks,

   

Hima

Anonymous
Not applicable

Works, thank you.

0 Likes