Table of Contents

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

action AdjustAction

The direction. Only Circle is valid for Color.

property AdjustProperty

The property to change.

cancellationToken CancellationToken

To stop waiting for the answer.

Returns

Task

A task that ends when the light has answered.

Exceptions

ArgumentException

The action is not Circle and the property is Color.

ArgumentOutOfRangeException

The action or the property is not a value of its enumeration.