BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
DPAIQHomeProtocol.h
1 #pragma once
2 
3 #include "iqrf/DPAMappedProtocol.h"
4 
5 namespace BeeeOn {
6 
10 class DPAIQHomeProtocol final : public DPAMappedProtocol {
11 public:
13 
14  DPARequest::Ptr pingRequest(
15  DPAMessage::NetworkAddress node) const override;
16 
17  DPARequest::Ptr dpaModulesRequest(
18  DPAMessage::NetworkAddress node) const override;
19  std::list<ModuleType> extractModules(
20  const std::vector<uint8_t> &message) const override;
21 
22  DPARequest::Ptr dpaValueRequest(
23  DPAMessage::NetworkAddress node,
24  const std::list<ModuleType> &type) const override;
26  const std::list<ModuleType> &modules,
27  const std::vector<uint8_t> &msg) const override;
28 
29  DPARequest::Ptr dpaProductInfoRequest(
30  DPAMessage::NetworkAddress address) const override;
31 
38  const std::vector<uint8_t> &msg,
39  uint16_t hwPID) const override;
40 };
41 
42 }
Vendor and product name for each paired device. It can be filled from IQRF repository or statically f...
Definition: DPAProtocol.h:29
Definition: SensorData.h:20
Map the IQRFType-specific data to the BeeeOn-specific ones.
Definition: DPAMappedProtocol.h:15
DPARequest::Ptr dpaModulesRequest(DPAMessage::NetworkAddress node) const override
Definition: DPAIQHomeProtocol.cpp:26
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 th...
Definition: DPAIQHomeProtocol.cpp:56
DPARequest::Ptr pingRequest(DPAMessage::NetworkAddress node) const override
DPA request for detecting that specific device communicates using the same protocols as implemented p...
Definition: DPAIQHomeProtocol.cpp:66
DPARequest::Ptr dpaValueRequest(DPAMessage::NetworkAddress node, const std::list< ModuleType > &type) const override
Definition: DPAIQHomeProtocol.cpp:49
DPARequest::Ptr dpaProductInfoRequest(DPAMessage::NetworkAddress address) const override
Definition: DPAIQHomeProtocol.cpp:79
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 (pr...
Definition: DPAIQHomeProtocol.cpp:92
std::list< ModuleType > extractModules(const std::vector< uint8_t > &message) const override
Definition: DPAIQHomeProtocol.cpp:39
Definition: DPAIQHomeProtocol.h:10