From 82df1d55736d6c7eee04746e04a70daa7036e8e5 Mon Sep 17 00:00:00 2001 From: starcalc Date: Thu, 6 Sep 2018 21:47:11 +0200 Subject: [PATCH] Update ESP8266-WakeupTest.ino --- ESP8266-WakeupTest.ino | 7 ------- 1 file changed, 7 deletions(-) diff --git a/ESP8266-WakeupTest.ino b/ESP8266-WakeupTest.ino index 91ced9a..a35730f 100644 --- a/ESP8266-WakeupTest.ino +++ b/ESP8266-WakeupTest.ino @@ -30,8 +30,6 @@ void setup() { } Serial.println(); Serial.println("Wifi connected."); - // connect to host - // const char* host = "195.160.169.52"; const char* host = "192.168.1.1"; int port = 8000; if (client.connect(host, port)) { @@ -51,11 +49,6 @@ void setup() { if (client.available()) { String line = client.readStringUntil('\n'); 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) { shutdown();