3 #include <Poco/SharedPtr.h>
5 #include "bluetooth/RevogiRGBLight.h"
15 typedef Poco::SharedPtr<RevogiSmartLite> Ptr;
17 static const std::string LIGHT_NAME;
22 const Poco::Timespan& timeout,
24 const HciInterface::Ptr hci);
29 const double value)
override;
32 void modifyStatus(
const double value,
const HciConnection::Ptr conn);
33 void modifyBrightness(
35 const unsigned char colorTemperature,
36 const HciConnection::Ptr conn);
37 void modifyColorTemperature(
const double value,
const HciConnection::Ptr conn);
39 unsigned char colorTempFromKelvins(
const double temperature)
const;
40 unsigned int colorTempToKelvins(
const double value)
const;
RefreshTime represents time of refreshing values from sensors. E.g. sensors are polled periodically o...
Definition: RefreshTime.h:24
Definition: SensorData.h:20
The class represents generic Revogi RGB light. It allows to control the on/off, brightness and color ...
Definition: RevogiRGBLight.h:19
Definition: MACAddress.h:8
RefreshTime refresh() const override
Regular period telling how often to call the method PollableDevice::poll(). The refresh must contain ...
Definition: BLESmartDevice.cpp:31
Definition: ModuleID.h:12
void requestModifyState(const ModuleID &moduleID, const double value) override
Modifies the device module given by moduleID to a given value.
Definition: RevogiSmartLite.cpp:46
SensorData parseValues(const std::vector< unsigned char > &values) const override
Definition: RevogiSmartLite.cpp:146
The class represents Revogi Delite-1748 bulb. It allows to control all its modules.
Definition: RevogiSmartLite.h:13