Package com.medm.devicekit
Interface IDeviceDescription
-
public interface IDeviceDescriptionDevice description
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleanawaitsAdding()Is device was added via postponed adding and still awaits addingjava.lang.StringgetAddress()Bluetooth MAC address of the device.java.util.GregorianCalendargetBatteryLastSyncTime()Last time when battery level was received from the device Can be present when passed inMedMDeviceManager.getDevice(String),MedMDeviceManager.getDevicesList().intgetBatteryLevel()Last know battery level received from the device Can be present when passed inMedMDeviceManager.getDevice(String),MedMDeviceManager.getDevicesList().java.lang.StringgetDBTitle()Deprecated.usegetModelName()java.lang.StringgetFirmware()Device firmware version received from the device.java.lang.StringgetHardware()Device hardware version received from the device.java.lang.StringgetManufacturer()Device manufacturer received from the device.java.util.List<MeasurementType>getMeasurementTypes()java.lang.StringgetModel()Device model received from the device.java.lang.StringgetModelName()User friendly name of the device.java.lang.StringgetName()Bluetooth name of the device.intgetRssi()Bluetooth RSSI Can be present when passed inIScannerCallback.onDeviceFound(IDeviceDescription),IScannerCallback.onAmbiguousDeviceFound(IDeviceDescription[]).java.lang.StringgetSerial()Device serial number received from the device or passed as postponed adding filter.DeviceSettinggetSetting(DeviceSetting.Kind settingKind)Get device setting by typeDeviceSetting[]getSettings()Get supported device settingsintgetSKU()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
-
-