BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
ZWaveNodeEvent.h
1 #pragma once
2 
3 #include <cstdint>
4 #include <map>
5 
6 namespace BeeeOn {
7 
15 public:
20  const std::map<std::string, uint32_t> &stats,
21  uint8_t nodeID);
22 
23  uint32_t sentCount() const;
24  uint32_t sentFailed() const;
25  uint32_t retries() const;
26  uint32_t receivedCount() const;
27  uint32_t receiveDuplications() const;
28  uint32_t receiveUnsolicited() const;
29  uint32_t lastRequestRTT() const;
30  uint32_t lastResponseRTT() const;
31  uint32_t averageRequestRTT() const;
32  uint32_t averageResponseRTT() const;
33  uint32_t quality() const;
34 
38  uint8_t nodeID() const;
39 
40 protected:
41  uint32_t lookup(const std::string &key) const;
42 
43 private:
44  uint8_t m_nodeID; // Identification of Z-Wave device.
45  std::map<std::string, uint32_t> m_stats;
46 };
47 
48 }
Definition: ZWaveNodeEvent.h:14
ZWaveNodeEvent(const std::map< std::string, uint32_t > &stats, uint8_t nodeID)
Definition: ZWaveNodeEvent.cpp:9
uint8_t nodeID() const
Definition: ZWaveNodeEvent.cpp:80