Search code examples
ios5core-bluetooth

Corebluetooth, How to get a unique UUID?


my question is the UUID of CBPeripheral seems not to be unique.

I have two iPad2, and a bluetooth4.0 device.

The UUID of the bluetooth device differs from the two iPad.

As shown in following images. The UUID get by the first iPad

The UUID get by the second iPad

Is there any way to find a unique UUID of bluetooth device on iOS device?

I need to find a UUID or mac address that would not change between different devices.

Thank you very much, please help me!!


Solution

  • The peripheral uses a random resolvable address that changes at least every 15 minutes, at which point the peripheral will appear to be new. To change this behavior you need to pair with the peripheral, then you will see the UUID and it will be persistent.