Arduino
Arduino copied to clipboard
added an example to switch LED using ESP8266WebServer
We do have a lot of LED switching already though, check out PostServer & AdvancedWebServer
Also... instead of String, please use PROGMEM'ed strings (static const char x[] PROGMEM = "...";) by using ..._P() methods! Current behaviour with string literals is that they are placed into RAM, and every contents will also be duplicated into String buffer. That would be the only improvement I could think of :)