Method FindDevice
- Namespace
- Yeelight
- Assembly
- YeelightClient.dll
FindDevice(string)
Finds a light by its id.
public YeelightDevice? FindDevice(string id)
Parameters
idstringThe id of the light, for example
0x000000000015243f(the case does not matter).
Returns
- YeelightDevice
The light, or
nullwhen the client has not found it.
Exceptions
- ArgumentNullException
idisnull.