Skip to content

Method ReadTemperatureAsync

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

ReadTemperatureAsync()

Task method that reads the device temperature. Demonstrates [Task] with more complex Python code execution.

csharp
[Task(Name = "read_temp", TimeoutMs = 5000)]
public virtual Task<float> ReadTemperatureAsync()

Returns

Task<float>

The temperature reading from the device.

Released under the Apache License 2.0.