BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
IQRFEvent.h
1 #pragma once
2 
3 #include <vector>
4 
5 #include <Poco/SharedPtr.h>
6 
7 #include "iqrf/DPAResponse.h"
8 #include "iqrf/DPARequest.h"
9 
10 namespace BeeeOn {
11 
15 class IQRFEvent {
16 public:
17  typedef Poco::SharedPtr<IQRFEvent> Ptr;
18 
19  IQRFEvent(DPARequest::Ptr const request);
20  IQRFEvent(DPAResponse::Ptr const response);
21 
22 
23  uint16_t networkAddress() const;
24  uint8_t peripheralNumber() const;
25  uint8_t commandCode() const;
26  uint16_t HWProfile() const;
27  std::vector<uint8_t> payload() const;
28 
29  uint8_t direction() const;
30  uint8_t size() const;
31 
32 private:
33  uint16_t m_NetworkAddress;
34  uint8_t m_pNumber;
35  uint8_t m_pCommand;
36  uint16_t m_hwPID;
37  std::vector<uint8_t> m_peripheralData;
38 
39  uint8_t m_direction;
40 };
41 
42 }
Definition: IQRFEvent.h:15