Wireless relay board

The goal of this project is to build a unit with four relays that can be controlled via Wifi. The components are mainly a ESP-03 wireless module, a ready-built relayboard and a 3V3 regulator.
The software is developed in Arduino IDE and are based on the aRest-library (https://github.com/marcoschwartz/aREST-ESP8266). This library makes it very simple to build controlling interfaces, a few lines of code makes it possible to control the ESP's I/O via a web based interface. The web interface contains buttons to enable/disable the relay. It is also possible to send requests to the ESP to turn on/off the relay. If you put the following address in a webbrowser the Gpio12 turns high:

and low:

This can also be used with curl:


The ESP responds:

{"message": "Pin D12 set to 1", "id": "1", "name": "esp8266", "connected": true}

{"message": "Pin D12 set to 0", "id": "1", "name": "esp8266", "connected": true}

To be continued...