我使用Android实现了蓝牙广告客户和接收器。在接收器上,我想知道每个广告商是否都有唯一的MAC地址。为了测试我使用HTC手机作为接收器和三星j5手机。我发现接收器上有很多MAC地址。
这是我的接收器代码,
@Override
public void onScanResult(int callbackType, ScanResult result) {
super.onScanResult(callbackType, result);
BluetoothDevice testDevice = result.getDevice();
String address = testDevice.getAddress();
outlbl.setText(address);
}
所以我用自定义应用程序测试了周围环境,发现了这个,
对于相同的数据,来自同一设备的MAC地址很多。这怎么可能?
我相信这些设备会随机化他们的mac地址。这些可以进一步解决它