BeeeOn Gateway
v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
|
The class represents dimmable Philips Hue bulb. More...
#include <PhilipsHueDimmableBulb.h>
Public Types | |
typedef Poco::SharedPtr < PhilipsHueDimmableBulb > | Ptr |
Public Types inherited from BeeeOn::PhilipsHueBulb | |
typedef Poco::SharedPtr < PhilipsHueBulb > | Ptr |
Public Types inherited from BeeeOn::PollableDevice | |
typedef Poco::SharedPtr < PollableDevice > | Ptr |
Public Member Functions | |
PhilipsHueDimmableBulb (const uint32_t ordinalNumber, const PhilipsHueBridge::BulbID bulbId, const PhilipsHueBridge::Ptr bridge, const RefreshTime &refresh) | |
bool | requestModifyState (const ModuleID &moduleID, const double value) override |
SensorData | requestState () override |
std::list< ModuleType > | moduleTypes () const override |
std::string | name () const override |
Public Member Functions inherited from BeeeOn::PhilipsHueBulb | |
PhilipsHueBulb (const uint32_t ordinalNumber, const PhilipsHueBridge::BulbID bulbId, const PhilipsHueBridge::Ptr bridge, const RefreshTime &refresh) | |
The DeviceID is created based on a bulb's 64-bit identifier, where DevicePrefix is given on 8th byte. | |
DeviceID | id () const override |
RefreshTime | refresh () const override |
Regular period telling how often to call the method PollableDevice::poll(). The refresh must contain a valid time. | |
Poco::FastMutex & | lock () |
PhilipsHueBridge::Ptr | bridge () |
PhilipsHueBulbInfo | info () |
void | poll (Distributor::Ptr distributor) override |
Perform polling for data and ship them via the given distributor. | |
Additional Inherited Members | |
Static Public Attributes inherited from BeeeOn::PhilipsHueBulb | |
static const double | MAX_DIM = 255 |
Protected Member Functions inherited from BeeeOn::PhilipsHueBulb | |
int | dimToPercentage (const double value) |
int | dimFromPercentage (const double percents) |
Protected Member Functions inherited from BeeeOn::Loggable | |
void | setupLogger (Poco::Logger *logger=0) const |
Poco::Logger & | logger () const |
Loggable (const ClassInfo &info) | |
Loggable (const std::type_info &info) | |
Static Protected Member Functions inherited from BeeeOn::Loggable | |
static Poco::Logger & | forMethod (const char *name) |
static Poco::Logger & | forClass (const ClassInfo &info) |
static Poco::Logger & | forClass (const std::type_info &info) |
template<typename T > | |
static Poco::Logger & | forInstance (const T *i) |
static void | configureSimple (Poco::Logger &logger, const std::string &level) |
static void | logException (Poco::Logger &logger, const Poco::Message::Priority priority, const Poco::Exception &e, const char *file, size_t line) |
Protected Attributes inherited from BeeeOn::PhilipsHueBulb | |
const DeviceID | m_deviceID |
uint32_t | m_ordinalNumber |
PhilipsHueBridge::Ptr | m_bridge |
RefreshTime | m_refresh |
The class represents dimmable Philips Hue bulb.