标签: ios swift core-bluetooth
我正在处理一项需要启动后台扫描以搜索 BLE 设备的要求。
根据 Apple documentation,您必须指定要在后台扫描的服务 ID。
func scanForPeripherals(withServices serviceUUIDs: [CBUUID]?, options: [String : Any]? = nil)
如果我没有服务 UUID 而只有设备 UUID 怎么办?
是否可以仅使用设备 UUID 进行后台扫描?