6 #include <Poco/Mutex.h>
7 #include <Poco/SharedPtr.h>
8 #include <Poco/Timespan.h>
10 #include <Poco/Net/SocketAddress.h>
12 #include "model/SensorData.h"
13 #include "net/MACAddress.h"
26 typedef Poco::SharedPtr<BelkinWemoLink> Ptr;
27 typedef uint64_t BulbID;
36 const Poco::Net::SocketAddress& address,
37 const Poco::Timespan &httpTimeout);
55 const int capability,
const std::string& value);
65 Poco::Net::SocketAddress address()
const;
66 void setAddress(
const Poco::Net::SocketAddress& address);
69 uint32_t countOfBulbs();
70 Poco::FastMutex& lock();
78 void requestDeviceInfo();
83 void incrementCountOfBulbs();
88 void decrementCountOfBulbs();
91 Poco::Net::SocketAddress m_address;
95 Poco::FastMutex m_lockCountOfBulbs;
98 Poco::FastMutex m_lock;
99 Poco::Timespan m_httpTimeout;
std::string requestDeviceState(const BelkinWemoLink::BulbID bulbID)
Prepares SOAP message containing request state of proper device command and sends it to device via HT...
Definition: BelkinWemoLink.cpp:210
The class represents Belkin WeMo Link. Provides functions to control the bulbs. It means turn on...
Definition: BelkinWemoLink.h:22
Definition: MACAddress.h:8
bool requestModifyState(const BelkinWemoLink::BulbID bulbID, const int capability, const std::string &value)
Prepares SOAP message containing request modify state of proper device command and sends it to device...
Definition: BelkinWemoLink.cpp:148
BelkinWemoLink(const Poco::Net::SocketAddress &address, const Poco::Timespan &httpTimeout)
Creates belkin wemo link. If the device do not respond in specified timeout, Poco::TimeoutException i...
Definition: BelkinWemoLink.cpp:25
The class represents Belkin WeMo Led Light Bulb. It works with Belkin WeMo Link it uses his methods t...
Definition: BelkinWemoBulb.h:22
bool operator==(const BelkinWemoLink &bwl) const
It compares two links based on MAC address.
Definition: BelkinWemoLink.cpp:300
std::list< BelkinWemoLink::BulbID > requestDeviceList()
Prepares SOAP message containing request device list command and sends it to device via HTTP...
Definition: BelkinWemoLink.cpp:79