简体   繁体   中英

Get UUID of BLE IOS Peripheral, not service UUID

how is it possible to fetch the UUID from Peripheral side. Not the service UUIDs out of the advertising package.

Lets see it from the central side:

- (void)centralManager:(CBCentralManager *)central
 didDiscoverPeripheral:(CBPeripheral *)peripheral
     advertisementData:(NSDictionary *)advertisementData
                  RSSI:(NSNumber *)RSSI

What I need is the UUID out of peripheral.identifier , not the ones included in the advertisementData . I can fetch them from the central side, but I need to do this also from the peripheral side.

I don't think there is a way do get UUID from CBPeripheralManager side.

Since this UUID is hard coded in Bluetooth chip,and people barely change their iPhone's Bluetooth chip,this method would be used to track down user ,which is versus to Apple's intend.

Apple banned UDID in iOS 5,banned MAC address in iOS 6.

So there is no reason Apple gave you access to Bluetooth UUID when Apple add CBPeripheralManager in iOS 6.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM