Method AdjustColorAsync
- Namespace
- Yeelight
- Assembly
- YeelightClient.dll
AdjustColorAsync(TimeSpan?, CancellationToken)
Moves the colour on. How far is the light's own affair: the protocol has no say in it.
public Task AdjustColorAsync(TimeSpan? duration = null, CancellationToken cancellationToken = default)
Parameters
durationTimeSpan?How long the change takes, or
nullfor the shortest time that a light supports (30 milliseconds).cancellationTokenCancellationTokenTo stop waiting for the answer.
Returns
- Task
A task that ends when the light has answered.
Exceptions
- ArgumentOutOfRangeException
The duration is shorter than the light accepts.