Method AdjustAsync
- Namespace
- Yeelight
- Assembly
- YeelightClient.dll
AdjustAsync(AdjustAction, AdjustProperty, CancellationToken)
Changes the brightness, the colour temperature or the colour without knowing what it is now: a step up, a step down, or a step up that starts again at the bottom when it reaches the top.
public Task AdjustAsync(AdjustAction action, AdjustProperty property, CancellationToken cancellationToken = default)
Parameters
actionAdjustActionpropertyAdjustPropertyThe property to change.
cancellationTokenCancellationTokenTo stop waiting for the answer.
Returns
- Task
A task that ends when the light has answered.
Exceptions
- ArgumentException
- ArgumentOutOfRangeException
The action or the property is not a value of its enumeration.