public final class BeaconUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static int |
getBattery(byte[] scanRecord,
int batteryFieldIndex)
베터리 상태
|
static java.lang.String |
getBeaconId(byte[] scanRecord)
비콘 ID
|
static java.lang.String |
getBeaconId(java.lang.String uuid,
int major,
int minor)
비콘 ID
|
static int |
getMajor(byte[] scanRecord)
Major
|
static int |
getMinor(byte[] scanRecord)
Minor
|
static java.lang.String |
getUUID(byte[] scanRecord)
UUID
|
static boolean |
isBeacon(byte[] scanRecord)
비콘 여부 판단
|
public static final java.lang.String getBeaconId(byte[] scanRecord)
scanRecord
- BLE 스캔레코드public static final java.lang.String getBeaconId(java.lang.String uuid, int major, int minor)
uuid
- UUID 포멧 문자열major
- 0 ~ 65535minor
- 0 ~ 65535public static final java.lang.String getUUID(byte[] scanRecord)
scanRecord
- BLE 스캔레코드public static final int getMajor(byte[] scanRecord)
scanRecord
- BLE 스캔레코드public static final int getMinor(byte[] scanRecord)
scanRecord
- BLE 스캔레코드public static final int getBattery(byte[] scanRecord, int batteryFieldIndex)
scanRecord
- BLE 스캔레코드public static final boolean isBeacon(byte[] scanRecord)
scanRecord
- BLE 스캔레코드