![]() |
FauxmoESP v2.0.0
|
Represents a light device that can be controlled by the Hue API.
#include <Light.h>
Public Member Functions | |
Light (const String &deviceName, uint deviceId) | |
Creates a new light device. | |
String | toJson () const |
Converts the light device to a JSON string. | |
Public Attributes | |
String | name |
The name of the device. | |
ushort | deviceId |
The id of the device. | |
char | uniqueId [DEVICE_UNIQUE_ID_LENGTH] {} |
Unique id of the device. | |
LightState | state = LightState() |
The current state of the device. | |
LightCapabilities | capabilities = LightCapabilities() |
The capabilities of the device. | |
String | type = "Extended color light" |
The type of the device. | |
String | modelid = "LCT015" |
The model id of the device. | |
String | manufacturername = "FauxmoESP" |
The manufacturer name of the device. | |
String | productname = "E4" |
The product name of the device. | |
String | swversion = "5.105.0.21169" |
The software version of the device. | |
Light::Light | ( | const String & | deviceName, |
uint | deviceId | ||
) |
String Light::toJson | ( | ) | const |
LightCapabilities Light::capabilities = LightCapabilities() |
ushort Light::deviceId |
String Light::manufacturername = "FauxmoESP" |
String Light::modelid = "LCT015" |
String Light::productname = "E4" |
LightState Light::state = LightState() |
String Light::swversion = "5.105.0.21169" |
String Light::type = "Extended color light" |
char Light::uniqueId[DEVICE_UNIQUE_ID_LENGTH] {} |