Recently,I'm doing a IBeacon program.it is like "lightbeacon" in apple store.
the "lightbeacon" only can scan their company's ibeacons. so my boss made me create a app for my company.
Now,i scan my ibeacon,but i don't get zhe mac address of ibeacon. The picture is "lightbeacon",i would like to do like this 。
Now, according to
- (void)centralManager:(CBCentralManager *)central
didDiscoverPeripheral:(CBPeripheral *)peripheral
advertisementData:(NSDictionary *)advertisementData
RSSI:(NSNumber *)RSSI
{
}
I know CBPeripheral.identifier can distinguish the ibeacons ,but I need the mac address to make me know the ibeacon. My company's ibeacons are only have a paper of mac address .So I need MAC address!
OSX/iOS hide BLE MAC addresses and it's not possible to get that information through the API.
You could try to inspect the values for
advertisementData
, it is a dictionary with keys that may contain different useful information. That information is usually manufacturer specific, so you need to ask for the structure of the scan response from your iBeacon manufacturer.