Update ESP8266-WakeupTest.ino
This commit is contained in:
parent
093dc48859
commit
82df1d5573
|
@ -30,8 +30,6 @@ void setup() {
|
||||||
}
|
}
|
||||||
Serial.println();
|
Serial.println();
|
||||||
Serial.println("Wifi connected.");
|
Serial.println("Wifi connected.");
|
||||||
// connect to host
|
|
||||||
// const char* host = "195.160.169.52";
|
|
||||||
const char* host = "192.168.1.1";
|
const char* host = "192.168.1.1";
|
||||||
int port = 8000;
|
int port = 8000;
|
||||||
if (client.connect(host, port)) {
|
if (client.connect(host, port)) {
|
||||||
|
@ -51,11 +49,6 @@ void setup() {
|
||||||
if (client.available()) {
|
if (client.available()) {
|
||||||
String line = client.readStringUntil('\n');
|
String line = client.readStringUntil('\n');
|
||||||
Serial.println("Server response: " + line);
|
Serial.println("Server response: " + line);
|
||||||
/*
|
|
||||||
if (line[0] == 'H' && line[1] == 'T' && line[2] == 'T' && line[3] == 'P' && line[4] == '/' && line[5] == '1' && line[6] == '.' && line[7] == '1' && line[8] == ' ' && line[9] == '2' && line[10] == '0' && line[11] == '0' && line[12] == ' ' && line[13] == 'O' && line[14] == 'K' ) {
|
|
||||||
success = 1;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
if (failcounter <= 0) {
|
if (failcounter <= 0) {
|
||||||
shutdown();
|
shutdown();
|
||||||
|
|
Loading…
Reference in New Issue