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