Reputation: 9064
Is there a way to generate a very low-energy Bluetooth signal from the iPhone so that another device could only detect the signal if it was very close to the emitting device? Perhaps using the iBeacon technology? What is the iBeacon Bluetooth Profile
Upvotes: 0
Views: 190
Reputation: 8608
You can do this using CoreLocation
iBeacons. See this tutorial on how to setup your device as a broadcasting iBeacon. In the devices searching for it you can monitor the RSSI
value to determine how close you are.
As you can see in the tutorial that CoreLocation
gives you CLBeacon
objects of broadcasting devices in the vicity. You can then access their proximity
property if you want Apple defined distances:
typedef {
CLProximityUnknown,
CLProximityImmediate,
CLProximityNear,
CLProximityFar
} CLProximity;
Upvotes: 1