Connect by proximity

I would like to be able to connect a device by proximity, that is, start a scan and pick the first device that goes below a specific RSSI threshold. How should I proceed in order to implement that?

Comments

This discussion has been closed.