BeeeOn Gateway
v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
|
Public Types | |
typedef Poco::SharedPtr < GenericMapper > | Ptr |
Public Types inherited from BeeeOn::ZWaveMapperRegistry::Mapper | |
typedef Poco::SharedPtr< Mapper > | Ptr |
Public Member Functions | |
GenericMapper (const ZWaveNode::Identity &id, const std::string &product) | |
DeviceID | buildID () const override |
std::string | product () const override |
std::list< ModuleType > | types () const override |
SensorValue | convert (const ZWaveNode::Value &value) const override |
ZWaveNode::Value | convert (const ModuleID &id, double value) const override |
void | mapType (const ZWaveNode::CommandClass &cc, const ModuleType &type) |
Record the given association between the given Z-Wave command class and BeeeOn ModuleType. When calling this method mutiple times, the order corresponds to an increasing ModuleID. | |
Public Member Functions inherited from BeeeOn::ZWaveMapperRegistry::Mapper | |
Mapper (const ZWaveNode::Identity &id, const std::string &product) | |
Poco::Nullable< ModuleType > | findType (const ModuleID &id) const |
Find module type by ID. | |
Static Public Attributes | |
static uint8_t | ID_MANGLE_BITS = ~0 |
Mangle bits to be injected into device ID of Z-Wave devices that are using the GenericMapper. | |
Protected Member Functions | |
void | cannotConvert (const ZWaveNode::Value &value) const |
Throw an exception when the given value cannot be converted into the BeeeOn representation. | |
Protected Member Functions inherited from BeeeOn::ZWaveMapperRegistry::Mapper | |
ZWaveNode::Identity | identity () const |
Additional Inherited Members | |
Static Protected Member Functions inherited from BeeeOn::ZWaveMapperRegistry::Mapper | |
static DeviceID | mangleID (const DeviceID &id, uint8_t bits) |
|
overridevirtual |
Reimplemented from BeeeOn::ZWaveMapperRegistry::Mapper.
|
overridevirtual |
Implements BeeeOn::ZWaveMapperRegistry::Mapper.
|
overridevirtual |
Poco::NotFoundException | if no such controllable module ID is available |
Poco::NotImplementedException | when such module ID is unsupported for changes by this mapper |
Reimplemented from BeeeOn::ZWaveMapperRegistry::Mapper.
|
overridevirtual |
Reimplemented from BeeeOn::ZWaveMapperRegistry::Mapper.
|
overridevirtual |
Implements BeeeOn::ZWaveMapperRegistry::Mapper.