public class ZBeacon extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
mBluetoothAddress
The Bluetooth mac address
|
protected int |
mRssi
The measured signal strength of the Bluetooth packet that led do this Beacon detection.
|
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
|
static int |
NOT_SET |
| Constructor and Description |
|---|
ZBeacon(String UUID) |
ZBeacon(String name,
String UUID) |
ZBeacon(String name,
String UUID,
int major,
int minor) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getBluetoothAddress() |
double |
getDistance() |
long |
getLastSeen() |
int |
getMajor() |
int |
getMinor() |
int |
getRssi() |
int |
getState() |
int |
getTxPower() |
String |
getUUID() |
int |
hashCode() |
void |
setBluetoothAddress(String mBluetoothAddress) |
void |
setDistance(double distance) |
void |
setLastSeen(long lastSeen) |
void |
setMajor(int major) |
void |
setMinor(int minor) |
void |
setRssi(int mRssi) |
void |
setState(int state) |
void |
setTxPower(int mTxPower) |
String |
toString() |
public static final int NOT_SET
protected int mRssi
protected int mTxPower
protected String mBluetoothAddress
public ZBeacon(String UUID)
public int getState()
public void setState(int state)
public long getLastSeen()
public void setLastSeen(long lastSeen)
public int getRssi()
public void setRssi(int mRssi)
public int getTxPower()
public void setTxPower(int mTxPower)
public String getBluetoothAddress()
public void setBluetoothAddress(String mBluetoothAddress)
public String getUUID()
public void setMajor(int major)
public void setMinor(int minor)
public int getMajor()
public int getMinor()
public double getDistance()
public void setDistance(double distance)