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(BeaconEvent beaconEvent) |
ZBeacon(String UUID) |
ZBeacon(String name,
String UUID) |
ZBeacon(String name,
String UUID,
int major,
int minor) |
ZBeacon(ZBeacon beacon) |
| 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() |
boolean |
isConnected() |
void |
setBluetoothAddress(String mBluetoothAddress) |
ZBeacon |
setConnected(boolean connected) |
void |
setDistance(double distance) |
void |
setLastSeen(long lastSeen) |
void |
setMajor(int major) |
void |
setMinor(int minor) |
ZBeacon |
setRssi(int mRssi) |
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 ZBeacon(BeaconEvent beaconEvent)
public ZBeacon(ZBeacon beacon)
public int getState()
public boolean isConnected()
public ZBeacon setConnected(boolean connected)
public long getLastSeen()
public void setLastSeen(long lastSeen)
public int getRssi()
public ZBeacon 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)