Table of Contents

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

duration TimeSpan?

How long the change takes, or null for the shortest time that a light supports (30 milliseconds).

cancellationToken CancellationToken

To 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.