Bluetooth device Integration in iphone

44 views Asked by At

I want to fetch UUID of a bluetooth device (like iBeacon but not iBeacon) by scanning, but wasn't successful so far.

I have tried CBPeripheral but it's returned uuid does not match with the real values.

Please suggest me how to find UUID / MAC address of bluetooth devices.

I have used following Code:

 func centralManager(_ central: CBCentralManager, didDiscover peripheral: CBPeripheral, advertisementData: [String : Any], rssi RSSI: NSNumber) {
    if(!peripherals.contains(peripheral)) {
        print(peripheral.identifier)
        peripherals.append(peripheral)
    }
}
0

There are 0 answers