# Getting MACaddress Null for aprilBeacon in ios9

**URL:** <https://bbs.aprbrother.com/t/getting-macaddress-null-for-aprilbeacon-in-ios9/400>\
**Category:** AprilBeacon\
**Created:** [December 2, 2015, 10:28am UTC](https://bbs.aprbrother.com/t/getting-macaddress-null-for-aprilbeacon-in-ios9/400 "2015-12-02T10:28:12Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![susmitha](https://bbs.aprbrother.com/letter_avatar_proxy/v4/letter/s/dfb087/32.png) [@susmitha](https://bbs.aprbrother.com/u/susmitha)\
**Post date:** [December 2, 2015, 10:28am UTC](https://bbs.aprbrother.com/t/getting-macaddress-null-for-aprilbeacon-in-ios9/400/1 "2015-12-02T10:28:12Z")

</div>

hii Please give me solution how to get macaddress in aprillBeacon in ios9

---

<div class="post-metadata">

**Author:** ![Rose](https://bbs.aprbrother.com/user_avatar/bbs.aprbrother.com/rose/32/12_2.png) [@Rose](https://bbs.aprbrother.com/u/Rose)\
**Post date:** [December 3, 2015, 6:49am UTC](https://bbs.aprbrother.com/t/getting-macaddress-null-for-aprilbeacon-in-ios9/400/2 "2015-12-03T06:49:49Z")

</div>

You need connect the iBeacon before you read mac address.then you can get mac address by reading the property macAddress.

---

<div class="post-metadata">

**Author:** ![susmitha](https://bbs.aprbrother.com/letter_avatar_proxy/v4/letter/s/dfb087/32.png) [@susmitha](https://bbs.aprbrother.com/u/susmitha)\
**Post date:** [December 4, 2015, 11:00am UTC](https://bbs.aprbrother.com/t/getting-macaddress-null-for-aprilbeacon-in-ios9/400/3 "2015-12-04T11:00:42Z")

</div>

I connect but still am getting mac as null.

ABBeacon \*beacon = [\_tableData allValues][indexPath.section][indexPath.row];  
NSLog(@“AprilllmacAdress-- %@”, beacon.macAddress);

---

<div class="post-metadata">

**Author:** ![susmitha](https://bbs.aprbrother.com/letter_avatar_proxy/v4/letter/s/dfb087/32.png) [@susmitha](https://bbs.aprbrother.com/u/susmitha)\
**Post date:** [December 4, 2015, 11:46am UTC](https://bbs.aprbrother.com/t/getting-macaddress-null-for-aprilbeacon-in-ios9/400/4 "2015-12-04T11:46:58Z")

</div>

Can please share the code to get MacAddress in AprilBeacon for ios.

---

<div class="post-metadata">

**Author:** ![Rose](https://bbs.aprbrother.com/user_avatar/bbs.aprbrother.com/rose/32/12_2.png) [@Rose](https://bbs.aprbrother.com/u/Rose)\
**Post date:** [December 7, 2015, 8:55am UTC](https://bbs.aprbrother.com/t/getting-macaddress-null-for-aprilbeacon-in-ios9/400/5 "2015-12-07T08:55:48Z")

</div>

use ABBluetoothManager’s method startAprilBeaconsDiscovery to discover, then use ABBeacon’s method connectToBeacon to connect with iBeacon , when you get beaconDidConnected callback , then you can get mac address through macAddress property.

---

<div class="post-metadata">

**Author:** ![susmitha](https://bbs.aprbrother.com/letter_avatar_proxy/v4/letter/s/dfb087/32.png) [@susmitha](https://bbs.aprbrother.com/u/susmitha)\
**Post date:** [December 7, 2015, 9:29am UTC](https://bbs.aprbrother.com/t/getting-macaddress-null-for-aprilbeacon-in-ios9/400/6 "2015-12-07T09:29:02Z")

</div>

I used ABBluetoothManager’s method startAprilBeaconsDiscovery to discover,but delegate methods are not called.

---

<div class="post-metadata">

**Author:** ![susmitha](https://bbs.aprbrother.com/letter_avatar_proxy/v4/letter/s/dfb087/32.png) [@susmitha](https://bbs.aprbrother.com/u/susmitha)\
**Post date:** [December 15, 2015, 5:00am UTC](https://bbs.aprbrother.com/t/getting-macaddress-null-for-aprilbeacon-in-ios9/400/7 "2015-12-15T05:00:54Z")

</div>

Can any share the code to get the macaddress in ios .i tried with ABBluetoothmanager but it not working.

---

<div class="post-metadata">

**Author:** ![Rose](https://bbs.aprbrother.com/user_avatar/bbs.aprbrother.com/rose/32/12_2.png) [@Rose](https://bbs.aprbrother.com/u/Rose)\
**Post date:** [December 17, 2015, 2:55am UTC](https://bbs.aprbrother.com/t/getting-macaddress-null-for-aprilbeacon-in-ios9/400/8 "2015-12-17T02:55:22Z")

</div>

I use ABBluetoothmanager’s startAprilBeaconsDiscovery method, and the delegate get called. did you set the delegate ?maybe you forget to set

---

<div class="post-metadata">

**Author:** ![susmitha](https://bbs.aprbrother.com/letter_avatar_proxy/v4/letter/s/dfb087/32.png) [@susmitha](https://bbs.aprbrother.com/u/susmitha)\
**Post date:** [December 17, 2015, 4:21am UTC](https://bbs.aprbrother.com/t/getting-macaddress-null-for-aprilbeacon-in-ios9/400/9 "2015-12-17T04:21:36Z")

</div>

i set the delegate but they are not getting called.

---

<div class="post-metadata">

**Author:** ![Rose](https://bbs.aprbrother.com/user_avatar/bbs.aprbrother.com/rose/32/12_2.png) [@Rose](https://bbs.aprbrother.com/u/Rose)\
**Post date:** [December 17, 2015, 8:39am UTC](https://bbs.aprbrother.com/t/getting-macaddress-null-for-aprilbeacon-in-ios9/400/10 "2015-12-17T08:39:57Z")

</div>

Did you open the bluetooth?

---

<div class="post-metadata">

**Author:** ![susmitha](https://bbs.aprbrother.com/letter_avatar_proxy/v4/letter/s/dfb087/32.png) [@susmitha](https://bbs.aprbrother.com/u/susmitha)\
**Post date:** [December 18, 2015, 4:05am UTC](https://bbs.aprbrother.com/t/getting-macaddress-null-for-aprilbeacon-in-ios9/400/11 "2015-12-18T04:05:56Z")

</div>

yes i opened bluetooth.

---

<div class="post-metadata">

**Author:** ![Rose](https://bbs.aprbrother.com/user_avatar/bbs.aprbrother.com/rose/32/12_2.png) [@Rose](https://bbs.aprbrother.com/u/Rose)\
**Post date:** [December 18, 2015, 5:24am UTC](https://bbs.aprbrother.com/t/getting-macaddress-null-for-aprilbeacon-in-ios9/400/12 "2015-12-18T05:24:31Z")

</div>

Do you have any IM tools? Maybe you can add me to your friend.
