Property AutoConnect
- Namespace
- Yeelight
- Assembly
- YeelightClient.dll
AutoConnect
Gets whether the client connects to a light as soon as it is found. This is what keeps the state of the lights up to date (a
light reports every change to the connections that it has). A light takes at most four connections
(ConnectionsPerLight) and the apps of the same network need theirs too, so a client that only
sends the odd command can set this to false: a light then connects when it gets a command, or when
ConnectAsync(CancellationToken) is called. The default is true.
public bool AutoConnect { get; init; }