3 #include <Poco/SharedPtr.h>
6 #include "bluetooth/BeeWiDevice.h"
16 typedef Poco::SharedPtr<BeeWiSmartLite> Ptr;
18 static const std::string NAME;
24 static const Poco::UUID ACTUAL_VALUES;
28 static const Poco::UUID WRITE_VALUES;
33 COLOR_TEMPERATURE = 0x11,
40 const Poco::Timespan& timeout,
42 const HciInterface::Ptr hci);
47 const double value)
override;
55 const std::vector<unsigned char>& data)
const override;
57 static bool match(
const std::string& modelID);
60 unsigned int brightnessToPercentages(
const double value)
const;
61 unsigned char brightnessFromPercentages(
const double percents)
const;
63 unsigned int colorTempToKelvins(
const double value)
const;
64 unsigned char colorTempFromKelvins(
const double temperature)
const;
The class represents BeeWi smart led light. It allows to gather and to control all its modules...
Definition: BeeWiSmartLite.h:14
RefreshTime represents time of refreshing values from sensors. E.g. sensors are polled periodically o...
Definition: RefreshTime.h:24
void requestModifyState(const ModuleID &moduleID, const double value) override
Modifies the device module given by moduleID to a given value.
Definition: BeeWiSmartLite.cpp:50
Definition: SensorData.h:20
Definition: MACAddress.h:8
Abstract class for BeeWi devices. Some BeeWi devices need to set the time to stop blinking...
Definition: BeeWiDevice.h:22
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
SensorData parseAdvertisingData(const std::vector< unsigned char > &data) const override
Definition: BeeWiSmartLite.cpp:100