Table of Contents

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

options YeelightClientOptions

The settings, or null for the defaults. They are read now: changing the object later changes nothing.

logger ILogger<YeelightClient>

Where the client writes what it does, or null to write nothing.

Exceptions

ArgumentOutOfRangeException

An option has a value that cannot be used.