Package com.medm.devicekit
Interface IDeviceDescription
- All Superinterfaces:
android.os.Parcelable
public interface IDeviceDescription
extends android.os.Parcelable
Device description
-
Nested Class Summary
-
Field Summary
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Is device was added via postponed adding and still awaits addingBluetooth MAC address of the device.Last time when battery level was received from the device Can be present when passed inMedMDeviceManager.getDevice(String)
,MedMDeviceManager.getDevicesList()
.int
Last know battery level received from the device Can be present when passed inMedMDeviceManager.getDevice(String)
,MedMDeviceManager.getDevicesList()
.Deprecated.Device firmware version received from the device.Device hardware version received from the device.Device manufacturer received from the device.getModel()
Device model received from the device.User friendly name of the device.getName()
Bluetooth name of the device.int
getRssi()
Bluetooth RSSI Can be present when passed inIScannerCallback.onDeviceFound(IDeviceDescription)
,IScannerCallback.onAmbiguousDeviceFound(IDeviceDescription[])
.Device serial number received from the device or passed as postponed adding filter.getSetting
(DeviceSetting.Kind settingKind) Get device setting by typeGet supported device settingsint
getSKU()
MedM SKU of the device.Methods inherited from interface android.os.Parcelable
describeContents, writeToParcel
-
Method Details
-
getSKU
int getSKU()MedM SKU of the device. Always present.- Returns:
- SKU
-
getAddress
Bluetooth MAC address of the device. Always present.- Returns:
- MAC address
-
getName
Bluetooth name of the device. Always present, but might be empty if the library doesn't know it.- Returns:
- name
-
getModelName
User friendly name of the device. Always present.- Returns:
- name
-
getManufacturer
Device manufacturer received from the device. Always present.- Returns:
- manufacturer name
-
getFirmware
Device firmware version received from the device. Can be present when passed inIDataCallback.onNewData(IDeviceDescription, String)
.- Returns:
- firmware version
-
getHardware
Device hardware version received from the device. Can be present when passed inIDataCallback.onNewData(IDeviceDescription, String)
.- Returns:
- hardware version
-
getModel
Device model received from the device. Can be present when passed inIDataCallback.onNewData(IDeviceDescription, String)
.- Returns:
- model name
-
getSerial
Device serial number received from the device or passed as postponed adding filter. Can be present when passed inIDataCallback.onNewData(IDeviceDescription, String)
,IAddDeviceCallback
,MedMDeviceManager.getDevice(String)
,MedMDeviceManager.getDevicesList()
.- Returns:
- serial number
-
getDBTitle
Deprecated.usegetModelName()
Technical device name- Returns:
- name
-
getRssi
int getRssi()Bluetooth RSSI Can be present when passed inIScannerCallback.onDeviceFound(IDeviceDescription)
,IScannerCallback.onAmbiguousDeviceFound(IDeviceDescription[])
.- Returns:
- integer RSSI
-
getBatteryLevel
int getBatteryLevel()Last know battery level received from the device Can be present when passed inMedMDeviceManager.getDevice(String)
,MedMDeviceManager.getDevicesList()
.- Returns:
- battery level in percents
-
getBatteryLastSyncTime
Last time when battery level was received from the device Can be present when passed inMedMDeviceManager.getDevice(String)
,MedMDeviceManager.getDevicesList()
.- Returns:
- time of last battery level sync
-
getMeasurementTypes
- Returns:
- list of measurement types for the device
-
awaitsAdding
boolean awaitsAdding()Is device was added via postponed adding and still awaits adding- Returns:
- true if device awaits adding
-
getSettings
Get supported device settings- Returns:
- device settings
-
getSetting
Get device setting by type- Parameters:
settingKind
- setting kind- Returns:
- device setting of this type if it exists for this device or null if it doesn't
-
getModelName()