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

แชร์ผ่าน


Mcp342x.ReadValueAsync(Int32, CancellationToken) Method

Definition

Initiates reading value

C#
protected System.Threading.Tasks.ValueTask<Iot.Device.Mcp3428.ConversionResult> ReadValueAsync (int channel = -1, System.Threading.CancellationToken cancellationToken = default);

Parameters

channel
Int32

Channel to read data from

cancellationToken
CancellationToken

Token which can be used to cancel the operation

Returns

Task which can be used to wait for ConversionResult

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