Reputation: 197
I want to store information about BLE device locally, but I cannot rely on MAC address because it changes too often. Is there any way to do that?
Upvotes: 1
Views: 644
Reputation: 13285
The Bluetooth address is the best way you can distinguish between devices. This is mentioned in the Bluetooth specification as follows [1]:
Devices are identified using a device address. Device addresses may be either a public device address or a random device address. A public device address and a random device address are both 48 bits in length
As Mike mentioned, there are a few types of MAC Addresses and the one that is changing is not the one that you want to look at. The Bluetooth specification identifies the following addresses:-
For more information, please see the reference below.
I hope this helps.
[1] Bluetooth Core Specification Version 5.0, Vol 6, Part B, Section 1.3 DEVICE ADDRESS.
Upvotes: 1