I'm trying to send data between two devices in bluetooth working area.
Since bluetooth can't send files, I want to check whether the device is in bluetooth active area, and if so, send it a file through wi-fi. I tried to use GameKit, but it doesn't suit my needs, cause:
- I want to hide the transmit interface from user
- If it's possible, GameKit starts to use wi-fi immediately, which I don't need
As I see, the best way here is Bonjour with NSNetService class. But I still can't understand how to find out whether device is in bluetooth active area or not.
Since the main idea is to find out devices which are close to user's device, I also don't mind any other ideas how to measure the distance between devices except bluetooth service.
It's possible there're a lot of users in one place, so the less time it takes, the better.
Any help?
Thanks!