1

Can I uniquely identify each android device using its Bluetooth LE Mac address?

Does this MAC address changes on reboot?

How can I get my own device's Bluetooth LE MAC address?

Any suggestion on this will be great help for me.

Thanks!

Balan
  • 421
  • 6
  • 12
Shivam995
  • 64
  • 1
  • 8

1 Answers1

1

This Stack Overflow answer answers your questions pretty well.

I haven't tried this myself but it looks like you can access the MAC address with BluetoothDevice.getAddress() (Android API reference here).

In case you are working with iOS too, you cannot access a BLE device's MAC address; see this post on Apple's Developer forum.

If you control the firmware of the device you are connecting to, you could name each device uniquely or put a unique identifier in the advertisement/scan response data. If you don't control the firmware of the device you are connecting to, it's possible that the manufacturer has done something like this.

Hope this helps!

Community
  • 1
  • 1
Peter S
  • 54
  • 6