BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
RevogiSmartCandle.h
1 #pragma once
2 
3 #include <set>
4 
5 #include <Poco/SharedPtr.h>
6 
7 #include "bluetooth/RevogiRGBLight.h"
8 
9 namespace BeeeOn {
10 
16 public:
17  typedef Poco::SharedPtr<RevogiSmartCandle> Ptr;
18 
19  static const std::set<std::string> LIGHT_NAMES;
20 
21 public:
23  const std::string& name,
24  const MACAddress& address,
25  const Poco::Timespan& timeout,
26  const RefreshTime& refresh,
27  const HciInterface::Ptr hci);
29 
30  void requestModifyState(
31  const ModuleID& moduleID,
32  const double value) override;
33 
34 protected:
40  SensorData parseValues(const std::vector<unsigned char>& values) const override;
41 };
42 
43 }
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
SensorData parseValues(const std::vector< unsigned char > &values) const override
Definition: RevogiSmartCandle.cpp:67
void requestModifyState(const ModuleID &moduleID, const double value) override
Modifies the device module given by moduleID to a given value.
Definition: RevogiSmartCandle.cpp:39
The class represents Revogi Delite-ED33 smart candle. It allows to control all its modules...
Definition: RevogiSmartCandle.h:15