Objective-C iOS 6 BLE (Bluetooth 4.0) Distance Calculation

Is it possible to calculate the distance between the device and the iPhone, or at least have an idea of ​​the force so that I can check if the distance becomes smaller or larger when I move. I would like to create some kind of system that will simplify the search for "lost" things around a close perimeter.

Is it possible? And if so, what is the best way to do this.

I assume that there are no obstacles between the two devices.

+3
source share
1 answer

Yes, absolutely!

This is actually the basic functionality provided by Core Bluetooth. To link to the link provided by the previous answer:

, :

  • (void) centralManager: (CBCentralManager *) central didDiscoverPeripheral: (CBPeripheral *) Data: (NSDictionary *) advertData RSSI: (NSNumber *) RSSI

Central Manager ( ) RSSI. RSSI . , RSSI, . , : , - .

RSSI , BLE RSSI .

+4

All Articles