Libraries/HueEmulator/src/include/Hue/Device.h File Reference
#include <Network/UPnP/Enumerator.h>
#include <WString.h>
#include <BitManipulations.h>
#include <ArduinoJson6.h>
#include <Data/BitSet.h>
Include dependency graph for Libraries/HueEmulator/src/include/Hue/Device.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Classes | |
class | Hue::Device |
class | Hue::Device::Enumerator |
Abstract class to manage a list of devices. More... | |
Namespaces | |
Hue | |
Macros | |
#define | HUE_ERROR_CODE_MAP(XX) |
#define | HUE_DEVICE_ATTR_MAP(XX) |
#define | HUE_COLORMODE_MAP(XX) |
#define | XX(code, tag, desc) tag = code, |
#define | XX(t) t, |
#define | XX(t) t, |
Enumerations | |
enum | Hue::Error { Hue::Error::XX } |
enum | Hue::Status { Hue::Status::success, Hue::Status::pending, Hue::Status::error } |
Status of a setAttribute request. More... | |
Functions | |
String | Hue::toString (Error error) |
JsonObject | Hue::createSuccess (JsonDocument &result) |
JsonObject | Hue::createError (JsonDocument &result, const String &path, Error error, String description) |
String | Hue::toString (Device::Attribute attr) |
String | Hue::toString (Device::Attributes attr) |
bool | Hue::fromString (const char *tag, Device::Attribute &attr) |
String | Hue::toString (Device::ColorMode mode) |
Macro Definition Documentation
◆ HUE_COLORMODE_MAP
#define HUE_COLORMODE_MAP | ( | XX | ) |
Value:
◆ HUE_DEVICE_ATTR_MAP
#define HUE_DEVICE_ATTR_MAP | ( | XX | ) |
Value:
◆ HUE_ERROR_CODE_MAP
#define HUE_ERROR_CODE_MAP | ( | XX | ) |
Value:
XX(1, UnauthorizedUser, "unauthorized user") \
XX(3, ResourceNotAvailable, "resource, <resource>, not available") \
XX(4, MethodNotAvailable, "method, <method_name>, not available for resource, <resource>") \
XX(6, ParameterNotAvailable, "parameter, <parameter>, not available") \
XX(101, LinkButtonNotPressed, "link button not pressed") \
XX(901, InternalError, "Internal error, <error_code>")
◆ XX [1/3]
#define XX | ( | code, | |
tag, | |||
desc | |||
) | tag = code, |
◆ XX [2/3]
#define XX | ( | t | ) | t, |
◆ XX [3/3]
#define XX | ( | t | ) | t, |