Problem getting own public address and connected device address in server.

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Is there any API or function to access the own public address of a Bluetooth device (in this case a PSoC4 BLE) when working as a server? And if possible also of the client that it is connected to?

   

I know that the Connection Handle (CYBLE_CONN_HANDLE_T) has a parameter uint8 bdHandle that identifies the peer device connected, but how can I access the public address of this device.

   

Thank you!
 

0 Likes
1 Solution
Anonymous
Not applicable

Hi Rios,

   

 

   

By using the API CyBle_GetDeviceAddress() to get the device address irrespective server or client.

   

Refer BLE component datasheet for more details about this API.

   

It is recommended to call this API only after ble stack is ON.

   

 

   

use API CyBle_GapGetPeerBdAddr() to get the peer device address irrespective of server or client.

   

 

   

Regards,
Vikas

View solution in original post

2 Replies
Anonymous
Not applicable

Hi Rios,

   

 

   

By using the API CyBle_GetDeviceAddress() to get the device address irrespective server or client.

   

Refer BLE component datasheet for more details about this API.

   

It is recommended to call this API only after ble stack is ON.

   

 

   

use API CyBle_GapGetPeerBdAddr() to get the peer device address irrespective of server or client.

   

 

   

Regards,
Vikas

Anonymous
Not applicable

Hi Vikas,

   

Thank you very much for the support. Everything is running smoothly now.

   

Best regards,

   

Diego

0 Likes