first commit
This commit is contained in:
38
ESP8266_DOMOTICZ_ECRAN/Domoticz.h
Executable file
38
ESP8266_DOMOTICZ_ECRAN/Domoticz.h
Executable file
@@ -0,0 +1,38 @@
|
||||
#ifndef Domoticz_h
|
||||
#define Domoticz_h
|
||||
|
||||
#include <Arduino.h>
|
||||
#include <ESP8266WiFi.h>
|
||||
#include "Params.h"
|
||||
|
||||
|
||||
class Domoticz
|
||||
{
|
||||
public:
|
||||
Domoticz(String domoticz, String port, const char* ssid, const char* pass);
|
||||
boolean connect();
|
||||
void close();
|
||||
void initWifi();
|
||||
void executeJson(String json, String svalue, String nvalue);
|
||||
//String getIdFromDomoticz();
|
||||
String generateKey();
|
||||
String readLine();
|
||||
String readVcc();
|
||||
void readTempDayValues(String idx);
|
||||
void getIdFromDomoticz(String macID, Params * params);
|
||||
static String getIndexOfString(String data, String separator, int index);
|
||||
private:
|
||||
const char* _pass;
|
||||
public:
|
||||
const char* _ssid;
|
||||
WiFiClient _client;
|
||||
char _domoc[];
|
||||
int _iport;
|
||||
String _domoticz;
|
||||
String _port;
|
||||
String _macID;
|
||||
String data = "";
|
||||
String labels = "";
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user