Method ReadOutputStateAsync
- Namespace
- Harp.OutputExpander
- Assembly
- Harp.OutputExpander.dll
ReadOutputStateAsync(CancellationToken)
Asynchronously reads the contents of the OutputState register.
public Task<DigitalOutputs> ReadOutputStateAsync(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenA CancellationToken which can be used to cancel the operation.
Returns
- Task<DigitalOutputs>
A task that represents the asynchronous read operation. The Result property contains the register payload.