I'm working with Core Bluetooth in Swift and want to scan for devices. The function scanForPeripherals(withServices sericeUUIDs: [CBUUID]?, options: [String: Any]? = nil)
offers the option to scan for devices with specific serviceUUIDs. How can I understand this filter?
Is it scanning for...
- ... all devices that have at least one of these services, so basically the
serviceUUIDs are interdependent by an "OR"?
or - ... all devices that have all the passed serviceUUIDS, so basically the serviceUUIDs are interdependent by an "AND"?
Thanks in advance!
CodePudding user response:
At least one of these services. OR.