BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
VektivaSmarwiStatus.h
1 #pragma once
2 
3 #include <Poco/Net/IPAddress.h>
4 
5 namespace BeeeOn {
6 
12 public:
14  int status,
15  int error,
16  int ok,
17  int ro,
18  bool pos,
19  int fix,
20  Poco::Net::IPAddress ipAddress,
21  int rssi);
22 
39  int status() const;
40 
51  int error() const;
52 
59  int ok() const;
60 
67  int ro() const;
68 
75  bool pos() const;
76 
85  int fix() const;
86 
90  Poco::Net::IPAddress ipAddress() const;
91 
95  int rssi() const;
96 private:
97  int m_status;
98  int m_error;
99  int m_ok;
100  int m_ro;
101  bool m_pos;
102  int m_fix;
103  Poco::Net::IPAddress m_ipAddress;
104  int m_rssi;
105 };
106 
107 }
int status() const
Status is a number according to representing SmarWi state. There are several status codes such as: 20...
Definition: VektivaSmarwiStatus.cpp:26
int error() const
In case any error occurs, it can be detected in this property. If correct state, 0 is sent or other n...
Definition: VektivaSmarwiStatus.cpp:31
The class represents the status of the Smarwi device. The status information is obtained by MQTT clie...
Definition: VektivaSmarwiStatus.h:11
int ro() const
Signalizes whether the ridge is inside of the Smarwi or not. Values: 0 - ridge is outside of SmarWi 1...
Definition: VektivaSmarwiStatus.cpp:41
bool pos() const
Shows in which position Smarwi is. Values: true - Smarwi is in open position false - Smarwi is in clo...
Definition: VektivaSmarwiStatus.cpp:46
Poco::Net::IPAddress ipAddress() const
Returns an IP address of the Smarwi.
Definition: VektivaSmarwiStatus.cpp:51
int ok() const
Shows whether Smarwi is in correct state. Values: 0 - error state 1 - available state.
Definition: VektivaSmarwiStatus.cpp:36
int rssi() const
Shows a current Wi-Fi signal strength.
Definition: VektivaSmarwiStatus.cpp:61
int fix() const
Shows whether window is fixed by Smarwi or not. That means whether window can be moved easily without...
Definition: VektivaSmarwiStatus.cpp:56