Table of Contents

Class YeelightError

Namespace
Yeelight
Assembly
YeelightClient.dll

The error that a command ended with: what a light answered in the error member of its answer, or why the answer never came.

public sealed record YeelightError : IEquatable<YeelightError>
Inheritance
YeelightError
Implements
Inherited Members

Constructors

YeelightError(int, string)

The error that a command ended with: what a light answered in the error member of its answer, or why the answer never came.

Properties

Code

The code. A light answers with -1 for everything that it refuses; the codes from -100 down are the client's own, for what went wrong on the way to the light (see Kind).

IsTransportFailure

Gets whether the way to the light failed, as opposed to the light refusing the command.

Kind

Gets what kind of failure this is: a refusal of the light, or a failure of the way to it.

Message

The message of the light (for example unsupported method or client quota exceeded), or of the client.

Methods

Equals(YeelightError?)

Indicates whether the current object is equal to another object of the same type.

GetHashCode()

Serves as the default hash function.