Abhinav
Abhinav

Reputation: 38162

A way to uniquely identify a BTLE device

Is there a way to uniquely identify a BTLE device (something like hardware ID)? I have 2 hardware BTLE devices and 2 soft BTLE devices (using CBCentralManager). All these devices are sending same UUID.

I want to identify the exact BTLE device when all the devices are lying near me. Any clue?

Upvotes: 6

Views: 3445

Answers (1)

Tim Tisdall
Tim Tisdall

Reputation: 10382

The devices should have unique Bluetooth addresses. If they don't then you wouldn't be able to properly connect to them without them interfering with each other. However, with BTLE it's possible for a device to have a randomized address for privacy (but those conform to a particular pattern so you can detect if you get that kind of address). The address is 6 bytes and is usually displayed in hex (ex A1-B2-C3-D4-E5-F6). The first 2 bytes usually indicate the manufacturer.

UPDATE: My answer is valid for most BLE usage, but as the question is tagged you may want to look at this other answer about getting a unique id on ios as a possible way to get the bluetooth address

Upvotes: 2

Related Questions