- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Labels:
-
BLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Hima,
How do you enable/disable a characteristic? Or is there a way to allow/disallow reading/writing?
Rich
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Works, thank you.