I'm trying to translate an Android app I developed that finds all peripherals around the central and returns them to the user. Then the user can connect to one (or more) of them to do other things.
Problem: Once a device gets connected with CoreBluetooth, it is no longer returned during a scan. It should be re-acquired through the known devices list that does not give any information about the vicinity of the devices returned.
Is there a simpler way than trying to connect to each known device to know if it is in range ?
EDIT: Known devices are indeed returned during a scan, I was working on BLE devices that did not have the same advertising name and GAPP name, which confused me when rescanning after the first connection to a device :)