borna
borna

Reputation: 924

is the iBeacon uuid is same as the MACID

I bought an iBeacon from Amazon for experimenting with iOS and Swift.

the package has the following information on it:

Name: sanwo100038

MAC: EC24B8310BE1

Major ID: 10004 Minor ID: 5178

So there is no mention of UUID in the Beacon I got. Is this means this is not iBeacon compatible?

My code is giving an exception at this line which I think is because is not a 128-bits value?

is there a way to find out the UUID of the beacon or basically this is useless since is not ibeacon compatible?

let uuid = NSUUID(UUIDString: "EC24B8310BE1")!

Upvotes: 0

Views: 78

Answers (1)

davidgyoung
davidgyoung

Reputation: 64961

Obviously that is not the ProximityUUID, which as you say must be 128 bits. It is unfortunate that it is not on the label.

Your best option is to scan for the ProximityUUID using a scanning tool for Android, OSX, or Linux. Unlike iOS, those platfroms do not block access to reading an unknown ProximityUUID. For Android, you can use the free Locate app. For OSX there is ScanBeacon.

Upvotes: 1

Related Questions