仅在感兴趣的服务中扫描可用外围设备
迅速:
let services = [CBUUID(string: SERVICE1_UUID), CBUUID(string: SERVICE2_UUID)]
centralManager.scanForPeripherals(withServices: services, options: nil)
目标 C:
NSArray *services = @[[CBUUID UUIDWithString:SERVICE1_UUID], [CBUUID UUIDWithString:SERVICE2_UUID]];
[centralManager scanForPeripheralsWithServices:services options:nil];