BeeeOn Gateway
v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
|
DeviceStatusHandler represents a class that can process status of a set of devices. This is useful when fetching pairing state from a remote server. More...
#include <DeviceStatusHandler.h>
Public Types | |
typedef Poco::SharedPtr < DeviceStatusHandler > | Ptr |
typedef std::map< DeviceID, std::map< ModuleID, double > > | DeviceValues |
Public Member Functions | |
virtual DevicePrefix | prefix () const =0 |
virtual void | handleRemoteStatus (const DevicePrefix &prefix, const std::set< DeviceID > &paired, const DeviceValues &values)=0 |
Handle device status as understood by a remote server. All devices of a certain prefix are notified in this way. More... | |
DeviceStatusHandler represents a class that can process status of a set of devices. This is useful when fetching pairing state from a remote server.
|
pure virtual |
Handle device status as understood by a remote server. All devices of a certain prefix are notified in this way.
The set of paired devices represents all paired devices of the common prefix. All missing devices should be threated as unpaired for that prefix. Also, the most recent status of certain devices can be passed this way.
Implemented in BeeeOn::JablotronDeviceManager, BeeeOn::DeviceManager, BeeeOn::VirtualDeviceManager, BeeeOn::BluetoothAvailabilityManager, and BeeeOn::PressureSensorManager.
|
pure virtual |
Implemented in BeeeOn::DeviceManager.