Skip to content

ThinkingHome.DeviceModel.FluentApi

ThinkingHome.DeviceModel.FluentApi.Properties

CarbonDioxideHandle Struct

Хендл свойства «концентрация CO2», ppm (CarbonDioxideProperty).

csharp
public readonly struct CarbonDioxideHandle

Methods

CarbonDioxideHandle.DescribeAsync(CancellationToken) Method

Discovery: описание свойства или null, если его (или устройства) нет.

csharp
public System.Threading.Tasks.Task<ThinkingHome.DeviceModel.Properties.CarbonDioxideProperty?> DescribeAsync(System.Threading.CancellationToken ct=default(System.Threading.CancellationToken));

Parameters

ct System.Threading.CancellationToken

Returns

System.Threading.Tasks.Task<CarbonDioxideProperty>

CarbonDioxideHandle.GetAsync(CancellationToken) Method

Текущее значение, ppm, или null, если свойства/значения нет.

csharp
public System.Threading.Tasks.Task<System.Nullable<double>> GetAsync(System.Threading.CancellationToken ct=default(System.Threading.CancellationToken));

Parameters

ct System.Threading.CancellationToken

Returns

System.Threading.Tasks.Task<System.Nullable<System.Double>>

Опубликовано под лицензией MIT