public class AltBeaconParser extends BeaconParser
BeaconParser that is used by the library.
Additional BeaconParser instances can get created and registered with the library.
See BeaconParser for more information.BeaconParser.BeaconLayoutException| Modifier and Type | Field and Description |
|---|---|
static String |
TAG |
ALTBEACON_LAYOUT, EDDYSTONE_TLM_LAYOUT, EDDYSTONE_UID_LAYOUT, EDDYSTONE_URL_LAYOUT, extraParsers, mAllowPduOverflow, mBeaconLayout, mDataEndOffsets, mDataLittleEndianFlags, mDataStartOffsets, mDBmCorrection, mExtraFrame, mHardwareAssistManufacturers, mIdentifier, mIdentifierEndOffsets, mIdentifierLittleEndianFlags, mIdentifierStartOffsets, mIdentifierVariableLengthFlags, mLayoutSize, mMatchingBeaconTypeCodeEndOffset, mMatchingBeaconTypeCodeStartOffset, mPowerEndOffset, mPowerStartOffset, mServiceUuid, mServiceUuidEndOffset, mServiceUuidStartOffset, URI_BEACON_LAYOUT| Constructor and Description |
|---|
AltBeaconParser()
Constructs an AltBeacon Parser and sets its layout
|
| Modifier and Type | Method and Description |
|---|---|
Beacon |
fromScanData(byte[] scanData,
int rssi,
BluetoothDevice device,
long timestampMs)
Construct an AltBeacon from a Bluetooth LE packet collected by Android's Bluetooth APIs,
including the raw Bluetooth device info
|
addExtraDataParser, bytesToHex, equals, fromScanData, getBeaconAdvertisementData, getDataFieldCount, getExtraDataParsers, getHardwareAssistManufacturers, getIdentifier, getIdentifierByteCount, getIdentifierCount, getLayout, getMatchingBeaconTypeCode, getMatchingBeaconTypeCodeEndOffset, getMatchingBeaconTypeCodeStartOffset, getMServiceUuidStartOffset, getPowerCorrection, getServiceUuid, getServiceUuidEndOffset, hashCode, longToByteArray, longToByteArray, setAllowPduOverflow, setBeaconLayout, setHardwareAssistManufacturerCodes, setMatchingBeaconTypeCodepublic static final String TAG
public AltBeaconParser()
public Beacon fromScanData(byte[] scanData, int rssi, BluetoothDevice device, long timestampMs)
fromScanData in class BeaconParserscanData - The actual packet bytesrssi - The measured signal strength of the packetdevice - The Bluetooth device that was detectedtimestampMs - The timestamp in milliseconds of the scan executionBeacon