public class ConfigurableDevice extends Packet
BeaconManager.startConfigurableDevicesDiscovery()
.
Scanned objects will be passed to the listener interface - BeaconManager.ConfigurableDevicesListener
.Modifier and Type | Field and Description |
---|---|
java.lang.String |
appVersion
String with encoded SemVer of device's firmware version (application)
|
java.lang.String |
bootloaderVersion
String with encoded SemVer of device's firmware versin (bootloader)
|
static android.os.Parcelable.Creator<ConfigurableDevice> |
CREATOR |
DeviceId |
deviceId
Id of device that is broadcasting this packet.
|
java.lang.Long |
discoveryTime
Exact time when this packet was scanned
|
boolean |
isClose
Near to connect field - is set to true if device is cloe to the user's phone.
|
boolean |
isShaken
This field will be set to true, if device is being shaken.
|
MacAddress |
macAddress
Mac address of device.
|
java.lang.Integer |
rssi
Received Signal Strength Indicator of given packet.
|
java.lang.Integer |
txPower
Transfer power of given packet.
|
DeviceType |
type
Configurable device object is a general concept for all connectivity packets that our device's advertise.
|
packetType
Constructor and Description |
---|
ConfigurableDevice(DeviceType type,
DeviceId deviceId,
MacAddress macAddress,
java.lang.String appVersion,
java.lang.String bootloaderVersion) |
ConfigurableDevice(DeviceType type,
DeviceId deviceId,
MacAddress macAddress,
java.lang.String appVersion,
java.lang.String bootloaderVersion,
boolean isShaken,
boolean isClose,
java.lang.Integer rssi,
java.lang.Integer txPower,
java.lang.Long discoveryTime) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getUniqueKey()
Returns unique key for this packet to identify it between other
Packet objects. |
int |
hashCode() |
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
getPacketType
public final DeviceType type
public final DeviceId deviceId
public final MacAddress macAddress
public final java.lang.String appVersion
public final java.lang.String bootloaderVersion
public final boolean isShaken
public final boolean isClose
public final java.lang.Integer rssi
public final java.lang.Integer txPower
public final java.lang.Long discoveryTime
public static final android.os.Parcelable.Creator<ConfigurableDevice> CREATOR
public ConfigurableDevice(DeviceType type, DeviceId deviceId, MacAddress macAddress, java.lang.String appVersion, java.lang.String bootloaderVersion, boolean isShaken, boolean isClose, java.lang.Integer rssi, java.lang.Integer txPower, java.lang.Long discoveryTime)
public ConfigurableDevice(DeviceType type, DeviceId deviceId, MacAddress macAddress, java.lang.String appVersion, java.lang.String bootloaderVersion)
public java.lang.String getUniqueKey()
Packet
Packet
objects.
Child classes should implement this method.getUniqueKey
in class Packet
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int describeContents()
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
writeToParcel
in class Packet
public java.lang.String toString()
toString
in class java.lang.Object