Skip to content

Method ReadHumidityAsync

Namespace: Belay.Core.Examples
Assembly: Belay.Core.dll

ReadHumidityAsync()

Reads humidity from the device sensor. Demonstrates [Task] attribute with custom name and timeout.

csharp
[Task(Name = "read_humidity", TimeoutMs = 3000)]
Task<float> ReadHumidityAsync()

Returns

Task<float>

The humidity reading as a percentage.

Released under the Apache License 2.0.