Tutorial by Examples

Swift: centralManager.scanForPeripherals(withServices: nil, options: nil) Objective C: [centralManager scanForPeripheralsWithServices:nil options:nil];
Swift: let services = [CBUUID(string: SERVICE1_UUID), CBUUID(string: SERVICE2_UUID)] centralManager.scanForPeripherals(withServices: services, options: nil) Objective C: NSArray *services = @[[CBUUID UUIDWithString:SERVICE1_UUID], [CBUUID UUIDWithString:SERVICE2_UUID]]; [centralManager scanFo...

Page 1 of 1