/* * IRremoteESP8266: IRServer - demonstrates sending IR codes controlled from a webserver * An IR LED must be connected to ESP8266 pin 0. * Version 0.1 June, 2015 */ #include #include #include #include #include const char* ssid = "....."; const char* password = "....."; MDNSResponder mdns; ESP8266WebServer server(80); IRsend irsend(0); void handleRoot() { server.send(200, "text/html", " ESP8266 Demo

Hello from ESP8266, you can send NEC encoded IR signals from here!

Send 0xFFE01F

Send 0xFAB123

Send 0xFFE896

"); } void handleIr(){ for (uint8_t i=0; i