BeeeOn Gateway
v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
|
PollableDevice is a device that is necessary to poll regularly for data. The polling can take some time to progress and the time should be significantly smaller than its refresh time. More...
#include <PollableDevice.h>
Public Types | |
typedef Poco::SharedPtr < PollableDevice > | Ptr |
Public Member Functions | |
virtual DeviceID | id () const =0 |
virtual RefreshTime | refresh () const =0 |
Regular period telling how often to call the method PollableDevice::poll(). The refresh must contain a valid time. | |
virtual void | poll (Distributor::Ptr distributor)=0 |
Perform polling for data and ship them via the given distributor. | |
PollableDevice is a device that is necessary to poll regularly for data. The polling can take some time to progress and the time should be significantly smaller than its refresh time.
|
pure virtual |
Implemented in BeeeOn::IQRFDevice, BeeeOn::VPTDevice, BeeeOn::BLESmartDevice, BeeeOn::PhilipsHueBulb, BeeeOn::BelkinWemoDevice, and BeeeOn::VirtualDevice.