Device
interface Device<TProgress, TProperties, TConnectionConfiguration, TConnectionProvidedConfiguration> : BaseDevice
Device.
TProgress: represents progress of loading data from device. F.e. QnScaleBondedDevice emits weight progress measurement QnScaleProgressData.
TProperties: device properties (f.e. battery percent).
TConnectionConfiguration: device connection configuration required for connection initialization. F.e. OmronBloodPressureBondableDevice contains number of available device users (OmronConnectionAvailableConfiguration).
TConnectionProvidedConfiguration: filled device settings for connection initialization. F.e. OmronBloodPressureBondableDevice contains selected users of all available device users (OmronConnectionConfiguration).
Inheritors
Properties
Functions
Link copied to clipboard
abstract fun connect(connectionTimeout: Duration = 30.seconds): Flow<Connection<TProgress, TProperties, TConnectionConfiguration, TConnectionProvidedConfiguration>>
Initiate device connection.
Link copied to clipboard
abstract fun flattenConnect(connectionTimeout: Duration = 30.seconds): Flow<DeviceConnection<TProgress, TProperties, TConnectionConfiguration, TConnectionProvidedConfiguration>>