Method ToggleAsync
- Namespace
- Yeelight
- Assembly
- YeelightClient.dll
ToggleAsync(CancellationToken)
Switches the light off when it is on, and on when it is off, without having to know which it is.
public Task ToggleAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenTo stop waiting for the answer.
Returns
- Task
A task that ends when the light has answered.