cancel
Showing results for 
Search instead for 
Did you mean: 

How can I get BLE client address from BLE server?

LChan.5
Associate II

I use STM32WB sample code to build project and need to know BLE client address from BLE server during connecting request. if is possible, could you please point me what API or data structure I can study. thank you.

best regards,

Langston

2 REPLIES 2
Remy ISSALYS
ST Employee

Hello,

When you received the HCI_LE_CONNECTION_COMPLETE_EVENT event on server side you can recover the peer address of the peer device.

Best Regards

Hi Remy,

 

It is true, when using p2pserver, this value is available inside SVCCTL_App_Notification(). However, when user is notified by calling Custom_APP_Notification(&HandleNotification) only the connection handle and event upcode are used. Is there any way to retrieve the peer address later, using this handler inside user function (custom_app.c) ?

Thanks

Marcelo