Skip to main content
LChan.5
Associate II
January 11, 2023
Question

How can I get BLE client address from BLE server?

  • January 11, 2023
  • 2 replies
  • 937 views

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

This topic has been closed for replies.

2 replies

Remy ISSALYS
ST Technical Moderator
January 18, 2023

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

Marcelo Barros
Associate III
February 11, 2024

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