-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.h
53 lines (43 loc) · 1.18 KB
/
constants.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//Meterkast ESP8266
//Zie D:\data\djoele\Documents\ESP8266-1.png
//pin 8: blauw = water
const int pinWater = 14;
const String host = "framboos-master.nl";
const int httpsPort = 443;
char buf[2000];
char buf2[2000];
int error_sent = 0;
String version;
char md5value[32] = "empty";
String sha;
char shavalue[60] = "";
const char * fingerprint;
const char* updateurl = "https://framboos-master.nl:443/update_esp8266";
const char* trigger_stack = "https://framboos-master.nl:443/trigger_stack";
const char* ssid = "VGV7519B5207C";
const char* password = "YmgH334fLyNB";
const char* www_username = "djoele";
const char* www_password = "@jP6Aq03";
char uname[] = "djoele:@jP6Aq03";
char unameenc[40];
const char* updateString = "/json.htm?type=command¶m=udevice&idx=";
const char* updateCounter = "&svalue=";
//Water
volatile int counter = 0;
const int ID1 = 12;
const char* type1 = "Water";
int waterpuls = 0;
time_t trigger_begin = now();
time_t trigger_nu;
time_t tijdsduur;
//Water variabelen
int waarde;
int waardenu;
unsigned long startTimeWifi = millis();
#ifdef DEBUG
WiFiServer telnetServer(23);
WiFiClient serverClient;
#endif
ESP8266WebServer server(80);
IPAddress ip;
String ipadres;