Constructor YeelightClient
- Namespace
- Yeelight
- Assembly
- YeelightClient.dll
YeelightClient()
Initializes a new instance of the YeelightClient class with the default options and no logging.
public YeelightClient()
YeelightClient(YeelightClientOptions?, ILogger<YeelightClient>?)
Initializes a new instance of the YeelightClient class.
public YeelightClient(YeelightClientOptions? options, ILogger<YeelightClient>? logger = null)
Parameters
optionsYeelightClientOptionsThe settings, or
nullfor the defaults. They are read now: changing the object later changes nothing.loggerILogger<YeelightClient>Where the client writes what it does, or
nullto write nothing.
Exceptions
- ArgumentOutOfRangeException
An option has a value that cannot be used.