1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-09-09 18:40:33 +03:00

Revert "fixed typos, brought back LED to blink"

This reverts commit 6014297bf2.
This commit is contained in:
ficeto
2015-05-01 12:28:20 +03:00
parent 6f4ba91698
commit 29a8c57ff5
2 changed files with 4 additions and 12 deletions

View File

@@ -6,18 +6,14 @@
const char* ssid = "........";
const char* password = "........";
MDNSResponder mdns;
ESP8266WebServer server(80);
const int led = 13;
void handle_root() {
digitalWrite(led, 1);
server.send(200, "text/plain", "hello from esp8266!");
digitalWrite(led, 0);
}
bool handle_not_found(){
digitalWrite(led, 1);
String message = "URI: ";
message += server.uri();
message += "\nMethod: ";
@@ -30,14 +26,11 @@ bool handle_not_found(){
}
message += "\nNotFound!";
server.send(404, "text/plain", message);
digitalWrite(led, 0);
return true;
}
void setup(void){
Serial.begin(115200);
pinMode(led, OUTPUT);
digitalWrite(led, 0);
WiFi.begin(ssid, password);
Serial.println("");