cancel
Showing results for 
Search instead for 
Did you mean: 

Real bluetooth address from android device

JCK12
Associate

How do I find the real bluetooth address of a connected android device? I find the address in the mobile phone / tablet from the settings, but in the stm32wb55 program event HCI_LE_CONNECTION_COMPLETE_SUBEVT_CODE meta_evt->data structure, the address is different. The address changes after each connection (for security reasons). Is it possible to find this real address in the stm32wb55 firmware?

This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
KnarfB
Principal III

What you get is probably a Resolvable Random Private Address. You need to bond the device to resolve it, see https://stackoverflow.com/questions/61660118/get-ble-mac-from-random-private-resolvable-address

hth

KnarfB

JCK12
Associate

I want to do this:

I have two devices with mcu stm32wb55 device 1 and a remote control.

Device 1 I can switch to open mode.

When I connect the remote control, I get its address and I add it to the whitelist.

Now I need to get a mobile phone or tablet address on the whitelist.

Whitelist will be on the Device 1.