how to get public Bluetooth Device Address using core_bluetooth

独自空忆成欢 提交于 2019-12-01 13:29:02

The simple answer is clearly: NO. It is not possible (practically) to get the BDA from the seeds that generated a particular UUID. Provided that in fact the algorithm that generated your UUID did used the MAC Address of your device to generate it, and I guess you cannot guarantee that it is the case for the UUID generator you use, unless you have access to the UUID Generator code or algorithm.

As apple while generating UUID might use the MAC address of the device, other components like timestamps, hashing, UDID (iOS Devices) and also some other factors so its looks impossible to get it back from UDID also.

Herberdth

Android 6 has REMOVED ability to read own Device WIFI and BT MAC address, they will be hardcoded to 02:00:00:00:00:00. This is "to protect user data" or more correctly "privacy". Too many big mall's have abused harvesting these addresses for getting user behavioral information.

On iOS it is not possible to get the MAC address of the device, it's abstracted by the CBPeripheral class and is identified internally in os by the identifier property. One way to get the MAC address, that's actually most popular, is to include the MAC address in the scan response. You could ask this feature from your BLE device manufacturer. Also the MAC address could be read from one of the GATT characteristics. Ask your BLE manufacturer for more details.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!