Authorize BLE Server GATT DB to Specific BLE Clients - KBA219319
Anonymous
Not applicable
Apr 05, 2017
12:08 AM
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Apr 05, 2017
12:08 AM
Version: **
Translation - Japanese: BLEサーバのGATT DBを特定のBLEクライアントに認証する- KBA219319 - Community Translated (JA)
Question:
How do I authorize the GATT DB of a BLE Server to a specific BLE Client?
Answer:
Do the following to define authorization:
- In the BLE server project, for the custom characteristic (which has write/read properties), make permission ‘Authorization Required’ as shown in Figure 1.
- In the server firmware, provide the authorization permission by checking the BLE Client address. The CyBle_GattsDbAuthorize API sets or clears the authorization permission for the GATT database.
- To grant permission, call CyBle_GattsDbAuthorize(1);.
- To decline permission, call CyBle_GattsDbAuthorize(0);.
Note that the API function will be effective only for the specific characteristics for which permission is set as ‘Authorization required’ in the BLE component setting.
Figure 1. BLE Server Characteristic Setting
Labels
- Tags:
- rf transceivers
Rate this article:
Contributors
-
This widget could not be displayed.Anonymous