BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
OZWNotificationEvent.h
1 #pragma once
2 
3 #include <Notification.h>
4 
5 #include <Poco/Nullable.h>
6 
7 namespace BeeeOn {
8 
17 public:
22  OZWNotificationEvent(const OpenZWave::Notification &notification);
23 
27  uint32_t homeID() const
28  {
29  return m_valueId.GetHomeId();
30  }
31 
35  uint8_t nodeID() const
36  {
37  return m_valueId.GetNodeId();
38  }
39 
43  OpenZWave::Notification::NotificationType type() const;
44 
49  OpenZWave::ValueID valueID() const;
50 
60  uint8_t byte() const;
61 
70  Poco::Nullable<uint8_t> event() const;
71 
72 private:
73  OpenZWave::Notification::NotificationType m_type;
74  OpenZWave::ValueID m_valueId;
75  uint8_t m_byte;
76  Poco::Nullable<uint8_t> m_event;
77 };
78 
79 }
OpenZWave::Notification::NotificationType type() const
Definition: OZWNotificationEvent.cpp:22
OZWNotificationEvent(const OpenZWave::Notification &notification)
Definition: OZWNotificationEvent.cpp:5
OpenZWave::ValueID valueID() const
Definition: OZWNotificationEvent.cpp:27
uint32_t homeID() const
Definition: OZWNotificationEvent.h:27
Poco::Nullable< uint8_t > event() const
Definition: OZWNotificationEvent.cpp:37
uint8_t byte() const
Definition: OZWNotificationEvent.cpp:32
uint8_t nodeID() const
Definition: OZWNotificationEvent.h:35
Low-level OpenZWave notification event. Because, the OpenZWave::Notification cannot be copied nor clo...
Definition: OZWNotificationEvent.h:16