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
deviceYeelightDeviceThe light.
Returns
Exceptions
- ArgumentNullException
deviceisnull.