BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes
BeeeOn::BelkinWemoDevice Class Referenceabstract

Abstract class representing generic BelkinWemo device. More...

#include <BelkinWemoDevice.h>

Inheritance diagram for BeeeOn::BelkinWemoDevice:
BeeeOn::PollableDevice BeeeOn::Loggable BeeeOn::BelkinWemoBulb BeeeOn::BelkinWemoStandaloneDevice BeeeOn::BelkinWemoDimmer BeeeOn::BelkinWemoSwitch

Public Types

typedef Poco::SharedPtr
< BelkinWemoDevice
Ptr
 
- Public Types inherited from BeeeOn::PollableDevice
typedef Poco::SharedPtr
< PollableDevice
Ptr
 

Public Member Functions

 BelkinWemoDevice (const DeviceID &id, const RefreshTime &refresh)
 
DeviceID deviceID () const
 
DeviceID id () const override
 
RefreshTime refresh () const override
 Regular period telling how often to call the method PollableDevice::poll(). The refresh must contain a valid time.
 
virtual bool requestModifyState (const ModuleID &moduleID, const double value)=0
 
virtual SensorData requestState ()=0
 
void poll (Distributor::Ptr distributor) override
 Perform polling for data and ship them via the given distributor.
 
virtual std::list< ModuleTypemoduleTypes () const =0
 
virtual std::string name () const =0
 
virtual Poco::FastMutex & lock ()
 

Static Public Member Functions

static Poco::XML::Node * findNode (Poco::XML::NodeIterator &iterator, const std::string &name)
 Finds the first node with the given name and returns it's value. When the value of node si empty returns NULL. If the node with the given name does not exist Poco::NotFoundException is raised.
 
static std::list
< Poco::XML::Node * > 
findNodes (Poco::XML::NodeIterator &iterator, const std::string &name)
 Finds all nodes with the given name and returns their values.
 

Protected Attributes

const DeviceID m_deviceId
 
RefreshTime m_refresh
 
Poco::FastMutex m_lock
 

Additional Inherited Members

- Protected Member Functions inherited from BeeeOn::Loggable
void setupLogger (Poco::Logger *logger=0) const
 
Poco::Logger & logger () const
 
 Loggable (const ClassInfo &info)
 
 Loggable (const std::type_info &info)
 
- Static Protected Member Functions inherited from BeeeOn::Loggable
static Poco::Logger & forMethod (const char *name)
 
static Poco::Logger & forClass (const ClassInfo &info)
 
static Poco::Logger & forClass (const std::type_info &info)
 
template<typename T >
static Poco::Logger & forInstance (const T *i)
 
static void configureSimple (Poco::Logger &logger, const std::string &level)
 
static void logException (Poco::Logger &logger, const Poco::Message::Priority priority, const Poco::Exception &e, const char *file, size_t line)
 

Detailed Description

Abstract class representing generic BelkinWemo device.

Member Function Documentation

DeviceID BelkinWemoDevice::id ( ) const
overridevirtual
Returns
ID of the device.

Implements BeeeOn::PollableDevice.


The documentation for this class was generated from the following files: