BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
BelkinWemoDimmer.h
1 #pragma once
2 
3 #include <list>
4 #include <string>
5 
6 #include <Poco/Timespan.h>
7 #include <Poco/SharedPtr.h>
8 #include <Poco/Net/SocketAddress.h>
9 
10 #include "belkin/BelkinWemoStandaloneDevice.h"
11 #include "model/ModuleType.h"
12 #include "model/SensorData.h"
13 
14 namespace BeeeOn {
15 
22 public:
23  typedef Poco::SharedPtr<BelkinWemoDimmer> Ptr;
24 
32  const Poco::Net::SocketAddress& address,
33  const Poco::Timespan &httpTimeout,
34  const RefreshTime &refresh);
35 
36 private:
40  bool requestModifyState(const ModuleID& moduleID, const double value) override;
41 
50  SensorData requestState() override;
51 
52  std::list<ModuleType> moduleTypes() const override;
53  std::string name() const override;
54 
58  bool operator==(const BelkinWemoDimmer& bw) const;
59 };
60 
61 }
The class represents Belkin WeMo Dimmer F7C059. Provides functions to control the switch...
Definition: BelkinWemoDimmer.h:21
RefreshTime represents time of refreshing values from sensors. E.g. sensors are polled periodically o...
Definition: RefreshTime.h:24
BelkinWemoDimmer(const Poco::Net::SocketAddress &address, const Poco::Timespan &httpTimeout, const RefreshTime &refresh)
Creates belkin wemo dimmer. If the device do not respond in specified timeout, Poco::TimeoutException...
Definition: BelkinWemoDimmer.cpp:29
Definition: SensorData.h:20
Definition: ModuleID.h:12
Abstract class representing generic BelkinWemo standalone device. The class implements sending messag...
Definition: BelkinWemoStandaloneDevice.h:20
RefreshTime refresh() const override
Regular period telling how often to call the method PollableDevice::poll(). The refresh must contain ...
Definition: BelkinWemoDevice.cpp:30