Class ZBeacon
- java.lang.Object
-
- com.zing.zalo.zalosdk.beaconsdk.models.ZBeacon
-
public class ZBeacon extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected StringmBluetoothAddressThe Bluetooth mac addressprotected intmRssiThe measured signal strength of the Bluetooth packet that led do this Beacon detection.protected intmTxPowerThe calibrated measured Tx power of the Beacon in RSSI This value is baked into an Beacon when it is manufactured, and it is transmitted with each packet to aid in the mDistance estimatestatic intNOT_SET
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetBluetoothAddress()doublegetDistance()longgetLastSeen()intgetMajor()intgetMinor()intgetRssi()intgetState()intgetTxPower()StringgetUUID()inthashCode()voidsetBluetoothAddress(String mBluetoothAddress)voidsetDistance(double distance)voidsetLastSeen(long lastSeen)voidsetMajor(int major)voidsetMinor(int minor)voidsetRssi(int mRssi)voidsetState(int state)voidsetTxPower(int mTxPower)StringtoString()
-
-
-
Field Detail
-
NOT_SET
public static final int NOT_SET
- See Also:
- Constant Field Values
-
mRssi
protected int mRssi
The measured signal strength of the Bluetooth packet that led do this Beacon detection.
-
mTxPower
protected int mTxPower
The calibrated measured Tx power of the Beacon in RSSI This value is baked into an Beacon when it is manufactured, and it is transmitted with each packet to aid in the mDistance estimate
-
mBluetoothAddress
protected String mBluetoothAddress
The Bluetooth mac address
-
-
Method Detail
-
getState
public int getState()
-
setState
public void setState(int state)
-
getLastSeen
public long getLastSeen()
-
setLastSeen
public void setLastSeen(long lastSeen)
-
getRssi
public int getRssi()
-
setRssi
public void setRssi(int mRssi)
-
getTxPower
public int getTxPower()
-
setTxPower
public void setTxPower(int mTxPower)
-
getBluetoothAddress
public String getBluetoothAddress()
-
setBluetoothAddress
public void setBluetoothAddress(String mBluetoothAddress)
-
getUUID
public String getUUID()
-
setMajor
public void setMajor(int major)
-
setMinor
public void setMinor(int minor)
-
getMajor
public int getMajor()
-
getMinor
public int getMinor()
-
getDistance
public double getDistance()
-
setDistance
public void setDistance(double distance)
-
-