Mcp342x.ReadChannelAsync(Int32, CancellationToken) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Reads the channel. Async API is mostly useful for greater resolutions and one-shot mode, when conversion time can be significant.
C#
public System.Threading.Tasks.ValueTask<double> ReadChannelAsync (int channel, System.Threading.CancellationToken cancellationToken = default);
member this.ReadChannelAsync : int * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<double>
Public Function ReadChannelAsync (channel As Integer, Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of Double)
- channel
- Int32
The channel.
- cancellationToken
- CancellationToken
The cancellation token.
ValueTask<System.Double>.
ผลิตภัณฑ์ | เวอร์ชัน |
---|---|
.NET IoT Libraries | 1.0.0, 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.5.0, 2.0.0, 2.1.0, 2.2.0 |