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

Map the IQRFType-specific data to the BeeeOn-specific ones. More...

#include <DPAMappedProtocol.h>

Inheritance diagram for BeeeOn::DPAMappedProtocol:
BeeeOn::DPAProtocol BeeeOn::Loggable BeeeOn::DPAIQHomeProtocol

Public Member Functions

 DPAMappedProtocol (const std::string &mappingGroup, const std::string &techNode)
 
void loadTypesMapping (const std::string &file)
 Load XML file with the types mapping between IQRF and BeeeOn.
 
void loadTypesMapping (std::istream &in)
 
std::list< ModuleTypeextractModules (const std::vector< uint8_t > &message) const override
 
SensorData parseValue (const std::list< ModuleType > &modules, const std::vector< uint8_t > &msg) const override
 Obtains measured values from the given byte message. The contents of the message must conform with the list of module types. More...
 
- Public Member Functions inherited from BeeeOn::DPAProtocol
virtual DPARequest::Ptr pingRequest (DPAMessage::NetworkAddress address) const =0
 DPA request for detecting that specific device communicates using the same protocols as implemented protocol. More...
 
virtual DPARequest::Ptr dpaProductInfoRequest (DPAMessage::NetworkAddress address) const =0
 
virtual ProductInfo extractProductInfo (const std::vector< uint8_t > &msg, uint16_t hwPID) const =0
 Obtaining of information from received response on the dpaProductInfoRequest(). More...
 
virtual DPARequest::Ptr dpaModulesRequest (DPAMessage::NetworkAddress node) const =0
 
virtual DPARequest::Ptr dpaValueRequest (DPAMessage::NetworkAddress node, const std::list< ModuleType > &type) const =0
 

Protected Member Functions

SensorValue extractSensorValue (const ModuleID &moduleID, const IQRFType &type, const uint16_t value) const
 Reads info about value based on IQRFType and converts measured value to SensorValue.
 
ModuleType findModuleType (uint8_t id) const
 Find module type by IQRF type id.
 
IQRFType findIQRFType (uint8_t id) const
 Find iqrf type by IQRF type id.
 
- Protected Member Functions inherited from BeeeOn::Loggable
void setupLogger (Poco::Logger *logger=0) const
 
Poco::Logger & logger () const
 
 Loggable (const ClassInfo &info)
 
 Loggable (const std::type_info &info)
 

Additional Inherited Members

- Public Types inherited from BeeeOn::DPAProtocol
typedef Poco::SharedPtr
< DPAProtocol
Ptr
 
- Static Protected Member Functions inherited from BeeeOn::Loggable
static Poco::Logger & forMethod (const char *name)
 
static Poco::Logger & forClass (const ClassInfo &info)
 
static Poco::Logger & forClass (const std::type_info &info)
 
template<typename T >
static Poco::Logger & forInstance (const T *i)
 
static void configureSimple (Poco::Logger &logger, const std::string &level)
 
static void logException (Poco::Logger &logger, const Poco::Message::Priority priority, const Poco::Exception &e, const char *file, size_t line)
 

Detailed Description

Map the IQRFType-specific data to the BeeeOn-specific ones.

Member Function Documentation

list< ModuleType > DPAMappedProtocol::extractModules ( const std::vector< uint8_t > &  message) const
overridevirtual
Returns
list of module types encoded in the given message

Implements BeeeOn::DPAProtocol.

SensorData DPAMappedProtocol::parseValue ( const std::list< ModuleType > &  modules,
const std::vector< uint8_t > &  msg 
) const
overridevirtual

Obtains measured values from the given byte message. The contents of the message must conform with the list of module types.

Returns
measured values encoded in the given message

Implements BeeeOn::DPAProtocol.


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