1

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!

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

1 Answer 1

0

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.

9
  • thank you for help me. but i get the advertisementdata ,but is no BLE MAC address here.i can only get the major 、 minor and name .
    – sdwdjzhy
    Jun 10, 2015 at 0:57
  • but i get the advertisementdata ,but is no BLE MAC address here.i can only get the major 、 minor and name .
    – sdwdjzhy
    Jun 10, 2015 at 0:59
  • The information is specific to the beacon manufacturer. It is possible that the MAC address could be available on a characteristic so you might need to connect to it. Did you contact the beacon manufacturer for details on scan response? What beacons do you use?
    – istirbu
    Jun 10, 2015 at 9:05
  • the beacons are made in china, and the company which made the beacons develop a app. the name of app is "LightBeacon" ,the app is also in apple store .In this app ,we can look the mac address of beacons.
    – sdwdjzhy
    Jun 16, 2015 at 3:02
  • the beacons are made in china, and the company which made the beacons develop a app. the name of app is "LightBeacon" ,the app is also in apple store .In this app ,we can look the mac address of beacons.
    – sdwdjzhy
    Jun 16, 2015 at 3:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.