This project is about to program the ESP8266 to act as a wireless webserver. To the Esp's Gpio2 a led is connected, and by sending requests from a webbrowser the led can be set on or off. The IDE used is Arduino 1.6.5 with the ESP-addon (
instructions here). The hardware is similar to Adafruits Huzzah-board, this means we have buttons connected to Gpio0 and Reset. With this buttons we don't have to remove power supply when programming, it's just to push the buttons in the right order (hold down Gpio0-button, push reset, release Gpio0). Schematic of the Huzzah is
here.
The code for the Esp is from the Esp-library, modified for a static IP-address.
The led can also be controlled from the command line with curl:
curl -X POST http://192.168.1.8/gpio/0
curl -X POST http://192.168.1.8/gpio/1