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:
XX(none) \
XX(hs) \
XX(ct) \
XX(xy)
#define XX(code, tag, desc)
Definition: Libraries/HueEmulator/src/include/Hue/Device.h:106

◆ HUE_DEVICE_ATTR_MAP

#define HUE_DEVICE_ATTR_MAP (   XX)
Value:
XX(on) \
XX(bri) \
XX(ct) \
XX(hue) \
XX(sat)
#define XX(code, tag, desc)
Definition: Libraries/HueEmulator/src/include/Hue/Device.h:106

◆ 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>")
#define XX(code, tag, desc)
Definition: Libraries/HueEmulator/src/include/Hue/Device.h:106

Device.h

Copyright 2019 mikee47 mike@.nosp@m.sill.nosp@m.yhous.nosp@m.e.ne.nosp@m.t

This file is part of the HueEmulator Library

This library is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 or later.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this library. If not, see https://www.gnu.org/licenses/.

◆ XX [1/3]

#define XX (   code,
  tag,
  desc 
)    tag = code,

◆ XX [2/3]

#define XX (   t)    t,

◆ XX [3/3]

#define XX (   t)    t,