public class Device
extends java.lang.Object
implements android.os.Parcelable
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<Device> |
CREATOR |
static int |
DEVICE_CAPABILITIES_ACCEL
This beacon has an accelerometer.
|
static int |
DEVICE_CAPABILITIES_BUZZER
This beacon has a speaker and can play melodies.
|
static int |
DEVICE_CAPABILITIES_LED
This beacon has a LED.
|
static int |
DEVICE_CAPABILITIES_NONE
This beacon has no special capabilities.
|
static int |
DEVICE_CAPABILITIES_TEMP
This beacon has an external temperature sensor.
|
static int |
DEVICE_SENSORS_ACCEL
This beacon has an accelerometer.
|
static int |
DEVICE_SENSORS_GYRO
This beacon has a gyroscope.
|
static int |
DEVICE_SENSORS_HUMIDITY
This beacon has a humidity sensor.
|
static int |
DEVICE_SENSORS_LIGHT
This beacon has a light sensor.
|
static int |
DEVICE_SENSORS_MAG
This beacon has a magnetic sensor.
|
static int |
DEVICE_SENSORS_NONE
This beacon has no sensors
|
static int |
DEVICE_SENSORS_PIR
This beacon has a PIR sensor
|
static int |
DEVICE_SENSORS_PRESSURE
This beacon has a pressure sensor
|
static int |
DEVICE_SENSORS_TEMP
This beacon has a temperature sensor.
|
static int |
DEVICE_TYPE_BLE_2_WIFI
A BluFi WiFi device.
|
static int |
DEVICE_TYPE_E_TAG |
static int |
DEVICE_TYPE_NANO_USB
A Nano USB Beek device.
|
static int |
DEVICE_TYPE_TAG_24_MM
A BEEKS Pro device.
|
static int |
DEVICE_TYPE_TAG_27_MM
A BEEKS Extends device.
|
static int |
DEVICE_TYPE_TAG_AA |
static int |
DEVICE_TYPE_TAG_CC_24_MM |
static int |
DEVICE_TYPE_TAG_CC_27_MM |
static int |
DEVICE_TYPE_TAG_CC_AA
an iBeek device
|
static int |
DEVICE_TYPE_TAG_HQ
An HQ Beacon device.
|
static int |
DEVICE_TYPE_UNKNOW
An unknown Device.
|
static int |
DEVICE_TYPE_USB
A USB Beek device.
|
Constructor and Description |
---|
Device() |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
int |
getCapabilities()
Gets the Device's capabilities
DEVICE_CAPABILITIES_NONE |
int |
getFirmwareRevision() |
int |
getSensors()
Gets the Device's sensors
DEVICE_SENSORS_NONE |
int |
getType()
Gets the Device type
DEVICE_TYPE_UNKNOW |
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final int DEVICE_TYPE_UNKNOW
Device
instance before the actual device type has been determined.public static final int DEVICE_TYPE_TAG_24_MM
public static final int DEVICE_TYPE_TAG_27_MM
public static final int DEVICE_TYPE_TAG_AA
public static final int DEVICE_TYPE_TAG_HQ
public static final int DEVICE_TYPE_TAG_CC_24_MM
public static final int DEVICE_TYPE_TAG_CC_27_MM
public static final int DEVICE_TYPE_TAG_CC_AA
public static final int DEVICE_TYPE_E_TAG
public static final int DEVICE_TYPE_USB
public static final int DEVICE_TYPE_NANO_USB
public static final int DEVICE_TYPE_BLE_2_WIFI
public static final int DEVICE_CAPABILITIES_NONE
public static final int DEVICE_CAPABILITIES_BUZZER
public static final int DEVICE_CAPABILITIES_LED
public static final int DEVICE_CAPABILITIES_ACCEL
public static final int DEVICE_CAPABILITIES_TEMP
public static final int DEVICE_SENSORS_NONE
public static final int DEVICE_SENSORS_ACCEL
public static final int DEVICE_SENSORS_TEMP
public static final int DEVICE_SENSORS_MAG
public static final int DEVICE_SENSORS_GYRO
public static final int DEVICE_SENSORS_PRESSURE
public static final int DEVICE_SENSORS_HUMIDITY
public static final int DEVICE_SENSORS_PIR
public static final int DEVICE_SENSORS_LIGHT
public static final android.os.Parcelable.Creator<Device> CREATOR
public int getType()
DEVICE_TYPE_UNKNOW
public int getCapabilities()
DEVICE_CAPABILITIES_NONE
public int getFirmwareRevision()
public int getSensors()
DEVICE_SENSORS_NONE
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
public java.lang.String toString()
toString
in class java.lang.Object