Table of Contents

Method StartColorFlowAsync

Namespace
Yeelight
Assembly
YeelightClient.dll

StartColorFlowAsync(ColorFlow, CancellationToken)

Starts a colour flow. Only a light that is on accepts it.

public Task StartColorFlowAsync(ColorFlow flow, CancellationToken cancellationToken = default)

Parameters

flow ColorFlow

The flow.

cancellationToken CancellationToken

To stop waiting for the answer.

Returns

Task

A task that ends when the light has answered.

Exceptions

ArgumentNullException

flow is null.