BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
Data Structures | Public Member Functions
BeeeOn::GenericZWaveMapperRegistry Class Reference

Certain Z-Wave nodes can be mapped to the BeeeOn system generically. This allows to support any node type without knowing it in advance. The GenericZWaveMapperRegistry implements this approach. More...

#include <GenericZWaveMapperRegistry.h>

Inheritance diagram for BeeeOn::GenericZWaveMapperRegistry:
BeeeOn::ZWaveMapperRegistry BeeeOn::Loggable

Data Structures

class  GenericMapper
 

Public Member Functions

void loadTypesMapping (const std::string &file)
 Load XML file with the types mapping between Z-Wave and BeeeOn.
 
void loadTypesMapping (std::istream &in)
 
Mapper::Ptr resolve (const ZWaveNode &node) override
 

Additional Inherited Members

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

Detailed Description

Certain Z-Wave nodes can be mapped to the BeeeOn system generically. This allows to support any node type without knowing it in advance. The GenericZWaveMapperRegistry implements this approach.

Devices resolved by the GenericZWaveMapperRegistry would have mangled device ID with 0xff in the top bits of the ident part.

Reported devices resolved by the GenericZWaveMapperRegistry would have a product name with appended string " (generic)". Thus, such devices can be distinguished easily from specific implementations that might have different module types.

Member Function Documentation

ZWaveMapperRegistry::Mapper::Ptr GenericZWaveMapperRegistry::resolve ( const ZWaveNode node)
overridevirtual

Map the given ZWaveNode instance on-fly to the BeeeOn system by using the GenericMapper.

Implements BeeeOn::ZWaveMapperRegistry.


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