Abstract class representing generic Philips Hue bulb.
More...
#include <PhilipsHueBulb.h>
|
| 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.
|
|
virtual bool | requestModifyState (const ModuleID &moduleID, const double value)=0 |
|
virtual SensorData | requestState ()=0 |
|
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.
|
|
virtual std::list< ModuleType > | moduleTypes () const =0 |
|
virtual std::string | name () const =0 |
|
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.
|
|
|
static const double | MAX_DIM = 255 |
|
|
int | dimToPercentage (const double value) |
|
int | dimFromPercentage (const double percents) |
|
void | setupLogger (Poco::Logger *logger=0) const |
|
Poco::Logger & | logger () const |
|
| Loggable (const ClassInfo &info) |
|
| Loggable (const std::type_info &info) |
|
|
const DeviceID | m_deviceID |
|
uint32_t | m_ordinalNumber |
|
PhilipsHueBridge::Ptr | m_bridge |
|
RefreshTime | m_refresh |
|
|
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) |
|
Abstract class representing generic Philips Hue bulb.
The documentation for this class was generated from the following files:
- /var/lib/jenkins/workspace/beeeon-gateway-master/src/philips/PhilipsHueBulb.h
- /var/lib/jenkins/workspace/beeeon-gateway-master/src/philips/PhilipsHueBulb.cpp