This is an old revision of the document!


const int led_red = 13;

pinMode(led_red, OUTPUT);


void handleRoot() {
  digitalWrite(led, 1);
  server.send(200, "text/plain", "hello from esp8266!");
  digitalWrite(led, 0);
}

 server.on("/LED1", [](){
    server.send(200, "text/plain", "LED is ON");
    digitalWrite(led, 1);
  });

  server.on("/LED0", [](){
    server.send(200, "text/plain", "LED is OFF");
    digitalWrite(led, 0);
  });
en/iot-open/espressif_es8266_http_led_control.1696925588.txt.gz · Last modified: 2023/10/10 08:13 by ktokarz
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0