Table of Contents

Method RemoveDeviceAsync

Namespace
Yeelight
Assembly
YeelightClient.dll

RemoveDeviceAsync(YeelightDevice)

Forgets a light and closes its connection. It is found again (as a new object) when it announces itself or answers a search again.

public Task<bool> RemoveDeviceAsync(YeelightDevice device)

Parameters

device YeelightDevice

The light.

Returns

Task<bool>

true when the client had the light; false when it did not (or no longer).

Exceptions

ArgumentNullException

device is null.