อ่านในภาษาอังกฤษ แก้ไข

แชร์ผ่าน


Mcp342x.ReadChannelAsync(Int32, CancellationToken) Method

Definition

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);

Parameters

channel
Int32

The channel.

cancellationToken
CancellationToken

The cancellation token.

Returns

ValueTask<System.Double>.

Applies to

ผลิตภัณฑ์ เวอร์ชัน
.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