#include <DPAIQHomeProtocol.h>
|
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< ModuleType > | extractModules (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).
|
|
| 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< ModuleType > | extractModules (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...
|
|
|
typedef Poco::SharedPtr
< DPAProtocol > | Ptr |
|
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.
|
|
void | setupLogger (Poco::Logger *logger=0) const |
|
Poco::Logger & | logger () const |
|
| Loggable (const ClassInfo &info) |
|
| Loggable (const std::type_info &info) |
|
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) |
|
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 |
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:
- /var/lib/jenkins/workspace/beeeon-gateway-master/src/iqrf/DPAIQHomeProtocol.h
- /var/lib/jenkins/workspace/beeeon-gateway-master/src/iqrf/DPAIQHomeProtocol.cpp