Skip to main content
LChan.5
Associate II
Jan 11, 2023 2:43 AM UTC
Question

How can I get BLE client address from BLE server?

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
Jan 18, 2023 9:33 AM UTC

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
Feb 11, 2024 10:42 PM UTC

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