public class IBeaconUtils
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
IBeaconUtils.IBeaconDistanceDescriptor |
| Constructor and Description |
|---|
IBeaconUtils() |
| Modifier and Type | Method and Description |
|---|---|
static double |
calculateAccuracy(int txPower,
double rssi)
Calculates the accuracy of an RSSI reading.
|
static IBeaconUtils.IBeaconDistanceDescriptor |
getDistanceDescriptor(double accuracy) |
static boolean |
isThisAnIBeacon(BluetoothLeDevice device)
Ascertains whether a
BluetoothLeDevice is an iBeacon; |
static boolean |
isThisAnIBeacon(byte[] manufacturerData)
Ascertains whether a Manufacturer Data byte array belongs to an iBeacon;
|
public static IBeaconUtils.IBeaconDistanceDescriptor getDistanceDescriptor(double accuracy)
public static double calculateAccuracy(int txPower,
double rssi)
http://stackoverflow.com/questions/20416218/understanding-ibeacon-distancingtxPower - the calibrated TX power of an iBeaconrssi - the RSSI value of the iBeaconpublic static boolean isThisAnIBeacon(BluetoothLeDevice device)
BluetoothLeDevice is an iBeacon;device - a BluetoothLeDevice device.public static boolean isThisAnIBeacon(byte[] manufacturerData)
scanRecord - a Bluetooth LE device's manufacturerData.