-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCSatel.h
28 lines (25 loc) · 857 Bytes
/
CSatel.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
ESP Home Automation Bridge (c) invpe 2k23.
Simple way to make your home smarter with Alexa
1.0 Quakefeller - This is based on the documentation from here: https://www.burgestrand.se/hue-api/api/lights/
1.1 K218B - Integrated SATEL alarm console for turning on/off alarm's from alexa
*/
#include <WiFi.h>
#include <WiFiClient.h>
#include <vector>
class CSatel
{
public:
CSatel();
~CSatel();
void Init(const IPAddress& rSatelIP, const int& iPort, const String& strCode);
bool ArmPartition(const int& iID);
bool DisarmPartition(const int& iID);
bool IsPartitionArmed(const int& iID);
private:
bool SendCommand(const std::vector<uint8_t>& vCommand, std::vector<uint8_t>& vOutput);
IPAddress m_IPAddress;
int m_iPort;
String m_strCode;
WiFiClient m_Client;
};