public final class DiscoveryUtils
extends java.lang.Object
| Modifier and Type | Method and Description | 
|---|---|
| static double | calculateDistance(int txPower,
                 double rssi)Calculates distance from remote device. | 
| static byte[] | extractDataByType(int type,
                 byte[] scanRecord)Extracts data by type | 
| static <any> | extractMetaData(byte[] scanRecord)Reads scanResponse and advertising in block way | 
public static double calculateDistance(int txPower,
                                       double rssi)
txPower - the tx powerrssi - the rssipublic static byte[] extractDataByType(int type,
                                       byte[] scanRecord)
type - the typescanRecord - the scan recordpublic static <any> extractMetaData(byte[] scanRecord)
scanRecord -