Topic

FAQ
Login Register
Connected Device Address
Jun 08, 2022 22:00

/

A

/A

HI

I would like to know whether it is possible to obtain the MAC Address of the device (host) to which my device connects.


I have a peripheral device bonded to a host.

If I use the API function bls_smp_param_loadbyIndex() it is possible to obtain the MAC Address of the host to which the peripheral device is bonded.


If my peripheral connects to a new device. I can catch that event in the callback function, at that point I need to obtain the new host's MAC Address. If I use the same function bls_smp_param_loadbyIndex() it shows only the Address of the currently bonded device. But does not return the Address of the newly connected host.


Is it possible to obtain this information. How do I go about doing this?


Thank you


2 replies
TL_Soyo Jun 09, 2022 10:26
1
/A

Hi,

   If you need get connected unbound device's MAC address , you can get the the MAC in BLT_EV_FLAG_CONNECT event,and you can get the event details in the Handbook.

rui.silva [Author] Jun 09, 2022 17:56
0
/A

Thank you very much.
Your information was spot on.

We are able to obtain the information we were looking for.