MedM DeviceKit
DeviceInfo Class Reference

Device description. More...

#import <DeviceInfo.h>

Inheritance diagram for DeviceInfo:

Instance Methods

(DeviceSetting *_Nullable) - getSetting:
 Get device setting of this type if it exists for this device or nil if it doesn't. More...
 

Properties

NSNumber *_Nonnull SKU
 MedM SKU of the device. More...
 
NSString *_Nonnull name
 Bluetooth name of the device. More...
 
NSString *_Nonnull address
 Bluetooth address of the device. More...
 
NSString *_Nonnull modelName
 User friendly name of the device. More...
 
NSString *_Nonnull manufacturer
 Device manufacturer. More...
 
NSNumber *_Nullable RSSI
 Bluetooth RSSI. More...
 
NSString *_Nullable firmware
 Device firmware version received from the device. More...
 
NSString *_Nullable hardware
 Device hardware version received from the device. More...
 
NSString *_Nullable model
 Device model received from the device. More...
 
NSString *_Nullable serial
 Device serial number received from the device or passed as postponed adding filter. More...
 
NSString *_Nullable dbTitle
 Technical device name. More...
 
NSNumber *_Nullable batteryLevel
 Last known battery level in percents. More...
 
NSDate *_Nullable batteryLastSyncTime
 Last time when we received info about battery level from this device. More...
 
NSArray< MeasurementTypeObj * > *_Nonnull measurementTypes
 List of measurement types for the device. More...
 
BOOL awaitsAdding
 Device was added via postponed adding and awaits actual communication with the device. More...
 
NSArray< DeviceSetting * > *_Nonnull settings
 Get supported device settings. More...
 

Detailed Description

Device description.

Method Documentation

◆ getSetting:()

- (DeviceSetting *) getSetting: (DeviceSettingKind kind

Get device setting of this type if it exists for this device or nil if it doesn't.

Property Documentation

◆ address

- (NSString* _Nonnull) address
readnonatomicretain

Bluetooth address of the device.

Always present.

◆ awaitsAdding

- (BOOL) awaitsAdding
readnonatomicassign

Device was added via postponed adding and awaits actual communication with the device.

◆ batteryLastSyncTime

- (NSDate* _Nullable) batteryLastSyncTime
readnonatomicretain

Last time when we received info about battery level from this device.

Can be present when passed in MedMDeviceManager::getDevicesList.

◆ batteryLevel

- (NSNumber* _Nullable) batteryLevel
readnonatomicretain

Last known battery level in percents.

Can be present when passed in MedMDeviceManager::getDevicesList.

◆ dbTitle

- (NSString* _Nullable) dbTitle
readnonatomicretain

Technical device name.

Deprecated:
use modelName

◆ firmware

- (NSString* _Nullable) firmware
readnonatomicretain

Device firmware version received from the device.

Can be present when passed in DataCallback::onNewData:source:.

◆ hardware

- (NSString* _Nullable) hardware
readnonatomicretain

Device hardware version received from the device.

Can be present when passed in DataCallback::onNewData:source:.

◆ manufacturer

- (NSString* _Nonnull) manufacturer
readnonatomicretain

Device manufacturer.

Always present.

◆ measurementTypes

- (NSArray< MeasurementTypeObj * > *) measurementTypes
readnonatomicretain

List of measurement types for the device.

◆ model

- (NSString* _Nullable) model
readnonatomicretain

Device model received from the device.

Can be present when passed in DataCallback::onNewData:source:.

◆ modelName

- (NSString* _Nonnull) modelName
readnonatomicretain

User friendly name of the device.

Always present.

◆ name

- (NSString* _Nonnull) name
readnonatomicretain

Bluetooth name of the device.

Always present, but might be empty if the library doesn't know it.

◆ RSSI

- (NSNumber* _Nullable) RSSI
readnonatomicretain

Bluetooth RSSI.

Can be present when passed in ScannerCallback::onNewDeviceFound:, ScannerCallback::onAmbiguousDeviceFound:.

◆ serial

- (NSString* _Nullable) serial
readnonatomicretain

Device serial number received from the device or passed as postponed adding filter.

Can be present when passed in DataCallback::onNewData:source:, AddDeviceCallback, MedMDeviceManager::getDevicesList.

◆ settings

- (NSArray< DeviceSetting * > *) settings
readnonatomicretain

Get supported device settings.

◆ SKU

- (NSNumber* _Nonnull) SKU
readnonatomicretain

MedM SKU of the device.

Always present.


The documentation for this class was generated from the following files: