public final class BeaconUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
createBeaconId(java.lang.String uuid,
int major,
int minor)
비콘 ID 생성
|
static int[] |
getAccelerometer(Beacon beacon)
마이다스콘 가속도 센서 데이터 확인
|
static int |
getBattery(byte[] scanRecord,
int index)
베터리 상태
|
static java.lang.String |
getBeaconId(byte[] scanRecord)
비콘 ID
|
static java.lang.String |
getBeaconId(java.lang.String uuid,
int major,
int minor)
비콘 ID
|
static int |
getBeaconMajor(byte[] scanRecord)
Major
|
static int |
getBeaconMinor(byte[] scanRecord)
Minor
|
static java.lang.String |
getBeaconUUID(byte[] scanRecord)
비콘 UUID
|
static int |
getEmergency(byte[] scanRecord)
응급신호
|
static float |
getHumidity(byte[] scanRecord)
습도
|
static java.lang.String |
getMidasId(byte[] scanRecord)
마이다스콘 ID
|
static java.lang.String |
getMidasUUID(byte[] scanRecord)
마이다스콘 UUID
|
static float |
getTemperature(byte[] scanRecord)
온도
|
static int |
getTxPower(byte[] scanRecord,
int index)
TxPower
|
static boolean |
isBeacon(byte[] scanRecord)
비콘 여부 판단
|
static boolean |
isMidascon(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 createBeaconId(java.lang.String uuid, int major, int minor)
uuid
- UUID 포멧 문자열major
- 0 ~ 65535minor
- 0 ~ 65535public static final java.lang.String getBeaconUUID(byte[] scanRecord)
scanRecord
- BLE 스캔 레코드public static final java.lang.String getMidasUUID(byte[] scanRecord)
scanRecord
- BLE 스캔 레코드public static final java.lang.String getMidasId(byte[] scanRecord)
scanRecord
- BLE 스캔 레코드public static final int getBeaconMajor(byte[] scanRecord)
scanRecord
- BLE 스캔 레코드public static final int getBeaconMinor(byte[] scanRecord)
scanRecord
- BLE 스캔 레코드public static final int getBattery(byte[] scanRecord, int index)
scanRecord
- BLE 스캔 레코드index
- 베터리 값 위치public static final boolean isBeacon(byte[] scanRecord)
scanRecord
- BLE 스캔 레코드public static final boolean isMidascon(byte[] scanRecord)
scanRecord
- BLE 스캔 레코드public static final int[] getAccelerometer(Beacon beacon)
beacon
- 가속도 센서를 조회할 비콘public static int getTxPower(byte[] scanRecord, int index)
scanRecord
- BLE 스캔 레코드index
- 데이터 위치public static float getTemperature(byte[] scanRecord)
scanRecord
- BLE 스캔 레코드public static float getHumidity(byte[] scanRecord)
scanRecord
- BLE 스캔 레코드public static int getEmergency(byte[] scanRecord)
scanRecord
- BLE 스캔 레코드