我如何获得 ibeacon 或 BLE 的 mac

how i get the mac of ibeacon or BLE

最近,我在做一个 IBeacon program.it 就像苹果商店里的 "lightbeacon"。

"lightbeacon"只能扫描他们公司的ibeacons。 所以我的老板让我为我的公司开发一个应用程序。

现在,我扫描我的 ibeacon,但我没有得到 ibeacon 的 mac 地址。 图片是"lightbeacon",我想这样做。

现在,根据

- (void)centralManager:(CBCentralManager *)central 
       didDiscoverPeripheral:(CBPeripheral *)peripheral 
       advertisementData:(NSDictionary *)advertisementData 
       RSSI:(NSNumber *)RSSI

{

}

我知道 CBPeripheral.identifier 可以区分 ibeacon,但我需要 mac 地址让我知道 ibeacon。我公司的ibeacons只有mac个地址的论文。所以我需要MAC个地址!

http://i.stack.imgur.com/7oBSp.jpg

OSX/iOS 隐藏 BLE MAC 地址并且无法通过 API.

获取该信息

您可以尝试检查 advertisementData 的值,a dictionary with keys 可能包含不同的有用信息。该信息通常是特定于制造商的,因此您需要向 iBeacon 制造商询问扫描响应的结构。