Table of Contents

Method RefreshAsync

Namespace
Yeelight
Assembly
YeelightClient.dll

RefreshAsync(CancellationToken)

Reads all the properties of the device (all the names that the protocol defines) and takes them over, so that the properties of this object are what the device says they are now. The client does this when a connection is made (see RefreshOnConnect), and the device reports every change after that.

public Task RefreshAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

To stop waiting for the answer.

Returns

Task

A task that ends when the properties are taken over.

Exceptions

YeelightException

The command did not succeed.