BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
Public Member Functions
BeeeOn::DPAIQHomeProtocol Class Referencefinal

#include <DPAIQHomeProtocol.h>

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

Public Member Functions

DPARequest::Ptr pingRequest (DPAMessage::NetworkAddress node) const override
 DPA request for detecting that specific device communicates using the same protocols as implemented protocol. More...
 
DPARequest::Ptr dpaModulesRequest (DPAMessage::NetworkAddress node) const override
 
std::list< ModuleTypeextractModules (const std::vector< uint8_t > &message) const override
 
DPARequest::Ptr dpaValueRequest (DPAMessage::NetworkAddress node, const std::list< ModuleType > &type) 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...
 
DPARequest::Ptr dpaProductInfoRequest (DPAMessage::NetworkAddress address) const override
 
ProductInfo extractProductInfo (const std::vector< uint8_t > &msg, uint16_t hwPID) const override
 Extracts product and vendor name from given message. Given message contains string with two parts (product code and hardware revision).
 
- Public Member Functions inherited from BeeeOn::DPAMappedProtocol
 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...
 

Additional Inherited Members

- Public Types inherited from BeeeOn::DPAProtocol
typedef Poco::SharedPtr
< DPAProtocol
Ptr
 
- Protected Member Functions inherited from BeeeOn::DPAMappedProtocol
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)
 
- 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

See Also
https://www.iqhome.org/doc/Sensor/Protocol%20Documentation/2.0.2/Protocol%20Documentation.pdf

Member Function Documentation

DPARequest::Ptr DPAIQHomeProtocol::dpaModulesRequest ( DPAMessage::NetworkAddress  node) const
overridevirtual
Returns
DPA request to detect available modules on the specific device.

Implements BeeeOn::DPAProtocol.

SharedPtr< DPARequest > DPAIQHomeProtocol::dpaProductInfoRequest ( DPAMessage::NetworkAddress  address) const
overridevirtual
Returns
DPA request for detecting of product info about specific device (vendor name and product name).

Implements BeeeOn::DPAProtocol.

DPARequest::Ptr DPAIQHomeProtocol::dpaValueRequest ( DPAMessage::NetworkAddress  node,
const std::list< ModuleType > &  type 
) const
overridevirtual
Returns
DPA request to obtain measured values from a specific IQRF node.

Implements BeeeOn::DPAProtocol.

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

Implements BeeeOn::DPAProtocol.

SensorData DPAIQHomeProtocol::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.

DPARequest::Ptr DPAIQHomeProtocol::pingRequest ( DPAMessage::NetworkAddress  address) const
overridevirtual

DPA request for detecting that specific device communicates using the same protocols as implemented protocol.

Returns
DPARequest that can be used as a ping message.

Implements BeeeOn::DPAProtocol.


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