Skip to content

Method ReadTemperatureAsync

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

ReadTemperatureAsync()

Reads the temperature from the device sensor. Demonstrates basic [Task] attribute usage.

csharp
[Task]
Task<float> ReadTemperatureAsync()

Returns

Task<float>

The temperature reading in Celsius.

Released under the Apache License 2.0.