I can successfully scan all connectable bluetooth devices:
_manager?.scanForPeripherals(withServices: nil, options: [CBCentralManagerScanOptionAllowDuplicatesKey:true])
But when I try to scan from specific CBUUID my app does not discover the bluetooth device.
_manager?.scanForPeripherals(withServices: [CBUUID(string: "FFF1")], options: [CBCentralManagerScanOptionAllowDuplicatesKey:true])
I created a virtual device with LightBlue ios app with the same FFF1 service UUID, and 2. code is working as expected. But it does not discover a real bluetooth device having the same service UUID FFF1.
Note: All of the functionality, connection, discovering services, discovering characteristics, read & write working except searhing for specific CBUUID.
...(withServices: nil...
, check indidDiscoverPeripheral
what's the advertisement (print it), and if "FFF1" doesn't appear, that's why it fails. – Larme