BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
Public Types | Public Member Functions
BeeeOn::VirtualDevice Class Reference
Inheritance diagram for BeeeOn::VirtualDevice:
BeeeOn::PollableDevice

Public Types

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

Public Member Functions

void setID (const DeviceID &deviceId)
 
DeviceID id () const override
 
void setVendorName (const std::string &vendorName)
 
std::string vendorName () const
 
void setProductName (const std::string &productName)
 
std::string productName () const
 
std::list< VirtualModule::Ptr > modules () const
 
void addModule (const VirtualModule::Ptr virtualModule)
 
std::list< ModuleTypemoduleTypes () const
 
void setRefresh (const RefreshTime &refresh)
 
RefreshTime refresh () const override
 Regular period telling how often to call the method PollableDevice::poll(). The refresh must contain a valid time.
 
bool modifyValue (const ModuleID &moduleID, double value)
 
SensorData generate ()
 
void poll (Distributor::Ptr distributor) override
 Perform polling for data and ship them via the given distributor.
 

Member Function Documentation

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

Implements BeeeOn::PollableDevice.


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