- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi:
where is the function in the peripheral ble ?
The peripheral ble let the central ble to launch a BTM_SECURITY_REQUEST_EVT .
Thank you.
Solved! Go to Solution.
- Labels:
-
MasterSlave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi ,
You can try using wiced_bt_dev_sec_bond API . Check /20706-A2_Bluetooth/include/wiced_bt_dev.h for API description.
Thanks,
Anjana
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi yigu_3831571
All the Bluetooth management APIs are documented in wiced_bt_dev.h. You will be able to see various categories of BTM APIs in it, like, Device Management Functions, SECURITY MANAGEMENT FUNCTIONS, etc. I suggest you to go through it.
In the application, you have to process the event and do the appropriate action.
For Eg: In hello_sensor app (hello_sensor.c), hello_sensor_management_cback( ) function handles the event processing. When it gets the security requests from the client, application grant the permission for that particular device by selecting the BD_ADDR as below. Similarly hello_client also handles the event through appropriate callback function.
case BTM_SECURITY_REQUEST_EVT:
wiced_bt_ble_security_grant( p_event_data->security_request.bd_addr, WICED_BT_SUCCESS );
break;
Please let me know if you have any queries.
Thanks,
-Dheeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi DheerajP_41,
I understand the procedure that you said.
I mean before the security requests from the client , if there is a function in the peripheral that notify the central to initiate a security request.
The central doesn't initiate a security request until it get a notification from the peripheral .
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi ,
You can try using wiced_bt_dev_sec_bond API . Check /20706-A2_Bluetooth/include/wiced_bt_dev.h for API description.
Thanks,
Anjana
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I try it, and it works.
Thanks.