Method GetSleepTimerAsync
- Namespace
- Yeelight
- Assembly
- YeelightClient.dll
GetSleepTimerAsync(CancellationToken)
Gets the sleep timer of the device.
public Task<TimeSpan?> GetSleepTimerAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenTo stop waiting for the answer.
Returns
Exceptions
- YeelightException
The command did not succeed.