BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
DPARequest.h
1 #pragma once
2 
3 #include "iqrf/DPAMessage.h"
4 
5 namespace BeeeOn {
6 
16 class DPARequest : public DPAMessage {
17 public:
18  typedef Poco::SharedPtr <DPARequest> Ptr;
19 
20  static const uint8_t DPA_COORD_PNUM;
21  static const uint8_t DPA_NODE_PNUM;
22  static const uint8_t DPA_OS_PNUM;
23 
24  DPARequest();
25 
29  DPARequest(
30  NetworkAddress node,
31  uint8_t pNumber,
32  uint8_t pCommand
33  );
34 
35  DPARequest(
36  NetworkAddress node,
37  uint8_t pNumber,
38  uint8_t pCommand,
39  uint16_t hwPID,
40  const std::vector<uint8_t> &peripheralData
41  );
42 
43  std::string toDPAString() const override;
44 
48  size_t size() const;
49 };
50 
51 }
The class represents DPA message that can be sent/received from IQRF network.
Definition: DPAMessage.h:22
DPA request contains a header:
Definition: DPARequest.h:16
std::string toDPAString() const override
Converts vector of values to dpa string. Dpa string contains hex values separated by dot...
size_t size() const
Number of bytes in request.