Package com.medm.devicekit
Interface IDeviceDescription
-
public interface IDeviceDescription
Device description
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
awaitsAdding()
Is device was added via postponed adding and still awaits addingjava.lang.String
getAddress()
Bluetooth MAC address of the device.java.util.GregorianCalendar
getBatteryLastSyncTime()
Last time when battery level was received from the device Can be present when passed inMedMDeviceManager.getDevice(String)
,MedMDeviceManager.getDevicesList()
.int
getBatteryLevel()
Last know battery level received from the device Can be present when passed inMedMDeviceManager.getDevice(String)
,MedMDeviceManager.getDevicesList()
.java.lang.String
getDBTitle()
Deprecated.usegetModelName()
java.lang.String
getFirmware()
Device firmware version received from the device.java.lang.String
getHardware()
Device hardware version received from the device.java.lang.String
getManufacturer()
Device manufacturer received from the device.java.util.List<MeasurementType>
getMeasurementTypes()
java.lang.String
getModel()
Device model received from the device.java.lang.String
getModelName()
User friendly name of the device.java.lang.String
getName()
Bluetooth name of the device.int
getRssi()
Bluetooth RSSI Can be present when passed inIScannerCallback.onDeviceFound(IDeviceDescription)
,IScannerCallback.onAmbiguousDeviceFound(IDeviceDescription[])
.java.lang.String
getSerial()
Device serial number received from the device or passed as postponed adding filter.DeviceSetting
getSetting(DeviceSetting.Kind settingKind)
Get device setting by typeDeviceSetting[]
getSettings()
Get supported device settingsint
getSKU()
MedM SKU of the device.
-
-
-
Method Detail
-
getSKU
int getSKU()
MedM SKU of the device. Always present.- Returns:
- SKU
-
getAddress
@NonNull java.lang.String getAddress()
Bluetooth MAC address of the device. Always present.- Returns:
- MAC address
-
getName
@NonNull java.lang.String getName()
Bluetooth name of the device. Always present, but might be empty if the library doesn't know it.- Returns:
- name
-
getModelName
@NonNull java.lang.String getModelName()
User friendly name of the device. Always present.- Returns:
- name
-
getManufacturer
@NonNull java.lang.String getManufacturer()
Device manufacturer received from the device. Always present.- Returns:
- manufacturer name
-
getFirmware
@Nullable java.lang.String getFirmware()
Device firmware version received from the device. Can be present when passed inIDataCallback.onNewData(IDeviceDescription, String)
.- Returns:
- firmware version
-
getHardware
@Nullable java.lang.String getHardware()
Device hardware version received from the device. Can be present when passed inIDataCallback.onNewData(IDeviceDescription, String)
.- Returns:
- hardware version
-
getModel
@Nullable java.lang.String getModel()
Device model received from the device. Can be present when passed inIDataCallback.onNewData(IDeviceDescription, String)
.- Returns:
- model name
-
getSerial
@Nullable java.lang.String 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 @NonNull java.lang.String 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
@Nullable java.util.GregorianCalendar 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
@NonNull java.util.List<MeasurementType> 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
@NonNull DeviceSetting[] getSettings()
Get supported device settings- Returns:
- device settings
-
getSetting
@Nullable DeviceSetting getSetting(DeviceSetting.Kind settingKind)
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
-
-