Table of Contents

Method EnsureSuccess

Namespace
Yeelight
Assembly
YeelightClient.dll

EnsureSuccess(string?)

Throws a YeelightException when the command did not succeed.

public YeelightResult EnsureSuccess(string? method = null)

Parameters

method string

The method of the command, for the message.

Returns

YeelightResult

This result, so that a call can be chained.

Exceptions

YeelightException

The light refused the command, or it did not get an answer.