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

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>

Inheritance diagram for BeeeOn::DeviceStatusHandler:
BeeeOn::DeviceManager BeeeOn::BelkinWemoDeviceManager BeeeOn::ConradDeviceManager BeeeOn::DongleDeviceManager BeeeOn::FitpDeviceManager BeeeOn::JablotronDeviceManager BeeeOn::PhilipsHueDeviceManager BeeeOn::PressureSensorManager BeeeOn::SonoffDeviceManager BeeeOn::VektivaDeviceManager BeeeOn::VirtualDeviceManager BeeeOn::VPTDeviceManager BeeeOn::ZWaveDeviceManager

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...
 

Detailed Description

DeviceStatusHandler represents a class that can process status of a set of devices. This is useful when fetching pairing state from a remote server.

Member Function Documentation

virtual void BeeeOn::DeviceStatusHandler::handleRemoteStatus ( const DevicePrefix prefix,
const std::set< DeviceID > &  paired,
const DeviceValues &  values 
)
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.

virtual DevicePrefix BeeeOn::DeviceStatusHandler::prefix ( ) const
pure virtual
Returns
device prefix the handler would like handle

Implemented in BeeeOn::DeviceManager.


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