BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
BeeWiSmartClim.h
1 #pragma once
2 
3 #include <Poco/SharedPtr.h>
4 
5 #include "bluetooth/BeeWiDevice.h"
6 
7 namespace BeeeOn {
8 
14 class BeeWiSmartClim : public BeeWiDevice {
15 public:
16  typedef Poco::SharedPtr<BeeWiSmartClim> Ptr;
17 
18  static const std::string NAME;
19 
20 public:
22  const MACAddress& address,
23  const Poco::Timespan& timeout,
24  const RefreshTime& refresh,
25  const HciInterface::Ptr hci);
26  ~BeeWiSmartClim();
27 
34  const std::vector<unsigned char>& data) const override;
35 
36  static bool match(const std::string& modelID);
37 };
38 
39 }
RefreshTime represents time of refreshing values from sensors. E.g. sensors are polled periodically o...
Definition: RefreshTime.h:24
Definition: SensorData.h:20
SensorData parseAdvertisingData(const std::vector< unsigned char > &data) const override
Definition: BeeWiSmartClim.cpp:36
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
The class represents BeeWi temperature and humidity sensor. It allows to parse recieved data from the...
Definition: BeeWiSmartClim.h:14