Skip to content

Method ReadWithTimeoutAsync

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

ReadWithTimeoutAsync(int)

Reads available data from the port using timeout-controlled cat.

csharp
public Task<string> ReadWithTimeoutAsync(int timeoutMs = 1000)

Parameters

timeoutMs int

Timeout in milliseconds.

Returns

Task<string>

Available data as string.

Released under the Apache License 2.0.