계속 BLE 관련 질문을 하시는것 같군요
오픈 라이브러리를 사용하심은 어떠신지요
https://github.com/alt236/Bluetooth-LE-Library---Android
본문중에서 발췌하였습니다.
Fun with iBeacons
You can check if a device is an iBeacon by using IBeaconUtils.isThisAnIBeacon(BluetootLeDevice device). Once you have confirmed that it is, you can create a new IBeaconDevice via the IBeaconDevice constructor.
An IBeaconDevice extends BluetoothLeDevice, so you still have access to the same methods as before. In addition you can do the following:
-
getAccuracy(): Gets the estimated Accuracy of the reading in meters based on a simple running average calculation
-
getCalibratedTxPower(): Gets the calibrated TX power of the iBeacon device as reported
-
getCompanyIdentifier(): Gets the iBeacon company identifier (this should always be 0x004C for Apple)
-
getDistanceDescriptor(): Gets the estimated Distance descriptor (an enum)
-
getIBeaconData(): Gets the raw IBeaconManufacturerData object.
-
getUUID(): Gets the device's UUID
-
getMajor(): Gets the device's Major value
-
getMinor(): Gets the device's Minor value