'Swift Core Bluetooth, scanForPeripherals with specific UUIDS. Are the passed service UUIDs interdependent by "AND" or "OR"?
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!
Solution 1:[1]
At least one of these services. OR.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Rob Napier |
