public class BluetoothLeDevice
extends java.lang.Object
getDevice() method.| Modifier and Type | Field and Description |
|---|---|
static |
CREATOR
The Constant CREATOR.
|
protected static int |
MAX_RSSI_LOG_SIZE |
| Modifier | Constructor and Description |
|---|---|
|
BluetoothLeDevice(BluetoothDevice device,
int rssi,
byte[] scanRecord,
long timestamp)
Instantiates a new Bluetooth LE device.
|
|
BluetoothLeDevice(BluetoothLeDevice device)
Instantiates a new Bluetooth LE device.
|
protected |
BluetoothLeDevice(Parcel in)
Instantiates a new bluetooth le device.
|
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAddress()
Gets the address.
|
AdRecordStore |
getAdRecordStore()
Gets the ad record store.
|
java.lang.String |
getBluetoothDeviceBondState()
Gets the bluetooth device bond state.
|
java.lang.String |
getBluetoothDeviceClassName()
Gets the bluetooth device class name.
|
BluetoothDevice |
getDevice()
Gets the device.
|
int |
getFirstRssi()
Gets the first rssi.
|
long |
getFirstTimestamp()
Gets the first timestamp.
|
java.lang.String |
getName()
Gets the name.
|
int |
getRssi()
Gets the rssi.
|
protected java.util.Map<java.lang.Long,java.lang.Integer> |
getRssiLog()
Gets the rssi log.
|
double |
getRunningAverageRssi()
Gets the running average rssi.
|
byte[] |
getScanRecord()
Gets the scan record.
|
long |
getTimestamp()
Gets the timestamp.
|
int |
hashCode() |
java.lang.String |
toString() |
void |
updateRssiReading(long timestamp,
int rssiReading)
Update rssi reading.
|
void |
writeToParcel(Parcel parcel,
int arg1) |
protected static final int MAX_RSSI_LOG_SIZE
public static finalCREATOR
public BluetoothLeDevice(BluetoothDevice device,
int rssi,
byte[] scanRecord,
long timestamp)
device - a standard android Bluetooth devicerssi - the RSSI value of the Bluetooth devicescanRecord - the scan record of the devicetimestamp - the timestamp of the RSSI readingpublic BluetoothLeDevice(BluetoothLeDevice device)
device - the deviceprotected BluetoothLeDevice(Parcel in)
in - the inpublic int describeContents()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String getAddress()
public AdRecordStore getAdRecordStore()
public java.lang.String getBluetoothDeviceBondState()
public java.lang.String getBluetoothDeviceClassName()
public BluetoothDevice getDevice()
public int getFirstRssi()
public long getFirstTimestamp()
public java.lang.String getName()
public int getRssi()
protected java.util.Map<java.lang.Long,java.lang.Integer> getRssiLog()
public double getRunningAverageRssi()
public byte[] getScanRecord()
public long getTimestamp()
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic void updateRssiReading(long timestamp,
int rssiReading)
timestamp - the timestamprssiReading - the rssi readingpublic void writeToParcel(Parcel parcel,
int arg1)