1

I want to connect known peripheral device using CBCentralManager. I don't want to scan (using "didDiscover") because ı know peripheral advertising given below advertisingData;

let advertisingData = [
        CBAdvertisementDataLocalNameKey: "xxxx",
        CBAdvertisementDataServiceUUIDsKey:[CBUUID(string: "e2c56db5-dffb-48d2-b060-d0f5a71096e0")]
        ] as [String : Any
uyarc
  • 579
  • 4
  • 17
  • 1
    You have to scan for the peripheral advertising the service at least once. Once you have discovered it and saved the identifier you can use `retrievePeripheralWithIdentifier` – Paulw11 May 11 '20 at 12:03
  • Thanks. Your commend useful for me @Paulw11 – uyarc May 11 '20 at 13:51

0 Answers0